Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,375 changes: 1,375 additions & 0 deletions specs/parser_errors/assign.yml

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions specs/parser_errors/capture.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
---
- name: capture-mut-end-trail-close_round
template: "{% capture x ) %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found close_round
complexity: 100
- name: capture-mut-end-trail-close_square
template: "{% capture x ] %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found close_square
complexity: 100
- name: capture-mut-end-trail-colon
template: "{% capture x : %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found colon
complexity: 100
- name: capture-mut-end-trail-comma
template: "{% capture x , %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found comma
complexity: 100
- name: capture-mut-end-trail-comparison
template: "{% capture x == %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found comparison
complexity: 100
- name: capture-mut-end-trail-dash
template: "{% capture x - %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found dash
complexity: 100
- name: capture-mut-end-trail-dot
template: "{% capture x . %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found dot
complexity: 100
- name: capture-mut-end-trail-id
template: "{% capture x extra %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found id
complexity: 100
- name: capture-mut-end-trail-number
template: "{% capture x 42 %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found number
complexity: 100
- name: capture-mut-end-trail-open_round
template: "{% capture x ( %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found open_round
complexity: 100
- name: capture-mut-end-trail-open_square
template: "{% capture x [ %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found open_square
complexity: 100
- name: capture-mut-end-trail-pipe
template: "{% capture x | %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found pipe
complexity: 100
- name: capture-mut-end-trail-question
template: "{% capture x ? %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found question
complexity: 100
- name: capture-mut-end-trail-string
template: "{% capture x 'hi' %}{% endcapture %}"
errors:
parse_error:
- Expected end_of_string but found string
complexity: 100
- name: capture-mut-variable_name-eos
template: "{% capture %}{% endcapture %}"
errors:
parse_error:
- Expected id but found end_of_string
complexity: 100
- name: capture-mut-variable_name-lexerr-ampersand
template: "{% capture & %}{% endcapture %}"
errors:
parse_error:
- Unexpected character &
complexity: 100
- name: capture-mut-variable_name-lexerr-asterisk
template: "{% capture * %}{% endcapture %}"
errors:
parse_error:
- Unexpected character *
complexity: 100
- name: capture-mut-variable_name-lexerr-at
template: "{% capture @ %}{% endcapture %}"
errors:
parse_error:
- Unexpected character @
complexity: 100
- name: capture-mut-variable_name-lexerr-backslash
template: "{% capture \\ %}{% endcapture %}"
errors:
parse_error:
- Unexpected character \
complexity: 100
- name: capture-mut-variable_name-lexerr-backtick
template: "{% capture ` %}{% endcapture %}"
errors:
parse_error:
- Unexpected character `
complexity: 100
- name: capture-mut-variable_name-lexerr-caret
template: "{% capture ^ %}{% endcapture %}"
errors:
parse_error:
- Unexpected character ^
complexity: 100
- name: capture-mut-variable_name-lexerr-dollar
template: "{% capture $ %}{% endcapture %}"
errors:
parse_error:
- Unexpected character $
complexity: 100
- name: capture-mut-variable_name-lexerr-hash
template: "{% capture # %}{% endcapture %}"
errors:
parse_error:
- 'Unexpected character #'
complexity: 100
- name: capture-mut-variable_name-lexerr-semicolon
template: "{% capture ; %}{% endcapture %}"
errors:
parse_error:
- Unexpected character ;
complexity: 100
- name: capture-mut-variable_name-lexerr-tilde
template: "{% capture ~ %}{% endcapture %}"
errors:
parse_error:
- Unexpected character ~
complexity: 100
- name: capture-mut-variable_name-lexerr-unclosed_double_quote
template: '{% capture "hello %}{% endcapture %}'
errors:
parse_error:
- Unexpected character "
complexity: 100
- name: capture-mut-variable_name-lexerr-unclosed_single_quote
template: "{% capture 'hello %}{% endcapture %}"
errors:
parse_error:
- Unexpected character '
complexity: 100
- name: capture-mut-variable_name-number
template: "{% capture 42 %}{% endcapture %}"
errors:
parse_error:
- Expected id but found number
complexity: 100
Loading
Loading