Allow identifiers to contain underscore
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
e158450d18
commit
10a33dc935
6 changed files with 428 additions and 1 deletions
93
tests/cases/3-instructions@identifiers.snap
Normal file
93
tests/cases/3-instructions@identifiers.snap
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
---
|
||||
source: tests/file_tests.rs
|
||||
expression: emit
|
||||
input_file: tests/cases/identifiers.temple
|
||||
---
|
||||
[
|
||||
LoadFromContextToSlot {
|
||||
name: "_name",
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 0,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: "
|
||||
",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "a_name",
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: "
|
||||
",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "1name",
|
||||
slot: VariableSlot {
|
||||
index: 2,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 2,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: "
|
||||
",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "_name1",
|
||||
slot: VariableSlot {
|
||||
index: 3,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 3,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: "
|
||||
",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "_namE",
|
||||
slot: VariableSlot {
|
||||
index: 4,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 4,
|
||||
},
|
||||
},
|
||||
AppendContent {
|
||||
content: "
|
||||
",
|
||||
},
|
||||
LoadFromContextToSlot {
|
||||
name: "name1",
|
||||
slot: VariableSlot {
|
||||
index: 5,
|
||||
},
|
||||
},
|
||||
EmitFromSlot {
|
||||
slot: VariableSlot {
|
||||
index: 5,
|
||||
},
|
||||
},
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue