Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

@@ -0,0 +1,56 @@
---input---
let
bar = "bar";
in {
foo.${bar} = 3;
foo.${bar + "bar"} = 3;
}
---tokens---
'let' Keyword
'\n ' Text
'bar' Literal.String.Symbol
' ' Text
'=' Operator
' ' Text
'"' Literal.String.Double
'bar' Literal.String.Double
'"' Literal.String.Double
';' Punctuation
'\n' Text
'in' Keyword
' ' Text
'{' Punctuation
'\n ' Text
'foo' Text
'.' Operator
'${' Literal.String.Interpol
'bar' Text
'}' Literal.String.Interpol
' ' Text
'=' Operator
' ' Text
'3' Literal.Number.Integer
';' Punctuation
'\n ' Text
'foo' Text
'.' Operator
'${' Literal.String.Interpol
'bar' Text
' ' Text
'+' Operator
' ' Text
'"' Literal.String.Double
'bar' Literal.String.Double
'"' Literal.String.Double
'}' Literal.String.Interpol
' ' Text
'=' Operator
' ' Text
'3' Literal.Number.Integer
';' Punctuation
'\n' Text
'}' Punctuation
'\n' Text