mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-19 01:39:36 +00:00
Imported test cases from pygments
This commit is contained in:
56
tests/nix/computed_property_names.txt
Normal file
56
tests/nix/computed_property_names.txt
Normal 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
|
Reference in New Issue
Block a user