mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 22:57:50 -03:00
Imported test cases from pygments
This commit is contained in:
72
tests/devicetree/test_fragment_out_of_root_node.txt
Normal file
72
tests/devicetree/test_fragment_out_of_root_node.txt
Normal file
@ -0,0 +1,72 @@
|
||||
---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
|
Reference in New Issue
Block a user