Start fixing error outputs
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
d6ac7af36b
commit
7f7bf5c98d
16 changed files with 319 additions and 21 deletions
24
tests/errors/invalid_if.1-parsed.snap
Normal file
24
tests/errors/invalid_if.1-parsed.snap
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: parsed
|
||||
info:
|
||||
input: "{{ if if }} {{ end }}"
|
||||
context: {}
|
||||
---
|
||||
ParsedTemplate {
|
||||
tokens: [
|
||||
[LeftDelim]"{{" (0..2),
|
||||
[Whitespace]" " (2..3),
|
||||
[ConditionalIf]"if" (3..5),
|
||||
[Whitespace]" " (5..6),
|
||||
[ConditionalIf]"if" (6..8),
|
||||
[Whitespace]" " (8..9),
|
||||
[RightDelim]"}}" (9..11),
|
||||
[Whitespace]" " (11..12),
|
||||
[LeftDelim]"{{" (12..14),
|
||||
[Whitespace]" " (14..15),
|
||||
[End]"end" (15..18),
|
||||
[Whitespace]" " (18..19),
|
||||
[RightDelim]"}}" (19..21),
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue