This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/devicetree/test_fragment_out_of_root_node.txt
Jean Abou-Samra 9b4af21690
Move more tests to tests/snippets instead of .py files (#2344)
These are easier to update in tests/snippets/ (just run with
--update-goldens).
2023-03-29 16:26:26 +02:00

72 lines
1.9 KiB
Text

---input---
nodelabel: node@0 { foo = "bar"; };
nodelabel: node { foo = "bar"; };
nodelabel0: nodelabel1: node@0 { foo = "bar"; };
---tokens---
'nodelabel' Name.Label
':' Punctuation
' ' Text.Whitespace
'node' Name.Function
'@' Operator
'0' Literal.Number.Integer
' ' Comment.Multiline
'{' Punctuation
' ' Text.Whitespace
'foo' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'"' Literal.String
'bar' Literal.String
'"' Literal.String
';' Punctuation
' ' Text.Whitespace
'}' Punctuation
';' Punctuation
'\n' Text.Whitespace
'nodelabel' Name.Label
':' Punctuation
' ' Text.Whitespace
'node' Name.Function
' ' Comment.Multiline
'{' Punctuation
' ' Text.Whitespace
'foo' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'"' Literal.String
'bar' Literal.String
'"' Literal.String
';' Punctuation
' ' Text.Whitespace
'}' Punctuation
';' Punctuation
'\n' Text.Whitespace
'nodelabel0' Name.Label
':' Punctuation
' ' Text.Whitespace
'nodelabel1' Name.Label
':' Punctuation
' ' Text.Whitespace
'node' Name.Function
'@' Operator
'0' Literal.Number.Integer
' ' Comment.Multiline
'{' Punctuation
' ' Text.Whitespace
'foo' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'"' Literal.String
'bar' Literal.String
'"' Literal.String
';' Punctuation
' ' Text.Whitespace
'}' Punctuation
';' Punctuation
'\n' Text.Whitespace