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/snbt/multiline.txt
Rit 8ad1bea2a2
Initial commit for MCFunction Lexer + tests (#2107)
* Initial commit for MCFunction Lexer + tests

* Apply suggestions from code review

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>

* added docstring info + fix for run ... command

* remove string ending Error tokens

* not working - refactor in-progress

* fixed: generic property

* Update pygments/lexers/mcfunction.py

Co-authored-by: Georg Brandl <georg@python.org>

* apply some fixes from comments

* Update pygments/lexers/mcfunction.py

Co-authored-by: Georg Brandl <georg@python.org>

* spacing

* updated tests and applied more suggestions

* fixed comment regex, passes tests

Co-authored-by: Jean Abou-Samra <jean@abou-samra.fr>
Co-authored-by: Georg Brandl <georg@python.org>
2022-04-24 14:59:41 +02:00

56 lines
1.4 KiB
Text

---input---
{
key: "cool compound",
UUID: [I;459130179,987513928,-1425663264,-175461800],
list: [
0,
1,
3
]
}
---tokens---
'{' Punctuation
'\n ' Text.Whitespace
'key' Name.Attribute
':' Punctuation
' ' Text.Whitespace
'"' Literal.String.Double
'cool compound' Literal.String.Double
'"' Literal.String.Double
',' Punctuation
'\n ' Text.Whitespace
'UUID' Name.Attribute
':' Punctuation
' ' Text.Whitespace
'[' Punctuation
'I' Name.Attribute
';' Punctuation
'459130179' Literal.Number.Integer
',' Punctuation
'987513928' Literal.Number.Integer
',' Punctuation
'-1425663264' Literal.Number.Integer
',' Punctuation
'-175461800' Literal.Number.Integer
']' Punctuation
',' Punctuation
'\n ' Text.Whitespace
'list' Name.Attribute
':' Punctuation
' ' Text.Whitespace
'[' Punctuation
'\n ' Text.Whitespace
'0' Literal.Number.Integer
',' Punctuation
'\n ' Text.Whitespace
'1' Literal.Number.Integer
',' Punctuation
'\n ' Text.Whitespace
'3' Literal.Number.Integer
'\n ' Text.Whitespace
']' Punctuation
'\n' Text.Whitespace
'}' Punctuation
'\n' Text