Allow trimming of whitespace
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
587cfdea53
commit
59f92e31fe
8 changed files with 243 additions and 9 deletions
39
tests/cases/3-instructions@trim_whitespace.snap
Normal file
39
tests/cases/3-instructions@trim_whitespace.snap
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: emit
|
||||
input_file: tests/cases/trim_whitespace.nomo
|
||||
---
|
||||
[
|
||||
LoadFromContextToSlot {
|
||||
name: "test" (6..10),
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
JumpIfNotTrue {
|
||||
emit_slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
jump: 5,
|
||||
},
|
||||
AppendContent {
|
||||
content: "Hello" (19..24),
|
||||
},
|
||||
AppendContent {
|
||||
content: " " (24..25),
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "stuff" (29..34),
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
Jump {
|
||||
jump: 0,
|
||||
},
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue