Add parsing for conditionals (cont.)
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
974086a877
commit
8afc2d1bde
29 changed files with 994 additions and 746 deletions
31
tests/cases/1-parsed@condition.snap
Normal file
31
tests/cases/1-parsed@condition.snap
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: parsed
|
||||
input_file: tests/cases/condition.nomo
|
||||
---
|
||||
ParsedTemplate {
|
||||
tokens: [
|
||||
"{{" (0..2),
|
||||
" " (2..3),
|
||||
"if" (3..5),
|
||||
" " (5..6),
|
||||
"test" (6..10),
|
||||
" " (10..11),
|
||||
"}}" (11..13),
|
||||
"\n " (13..18),
|
||||
"Hello World!" (18..30),
|
||||
"\n" (30..31),
|
||||
"{{" (31..33),
|
||||
" " (33..34),
|
||||
"end" (34..37),
|
||||
" " (37..38),
|
||||
"}}" (38..40),
|
||||
"\n\n" (40..42),
|
||||
"{{" (42..44),
|
||||
"=" (44..45),
|
||||
" " (45..46),
|
||||
"stuff" (46..51),
|
||||
" " (51..52),
|
||||
"}}" (52..54),
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue