* 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>
151 lines
4.4 KiB
Text
Generated
151 lines
4.4 KiB
Text
Generated
'{' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'display' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Name' Name.Attribute
|
|
':' Punctuation
|
|
"'" Literal.String.Single
|
|
'{"text":"My Epic Sword","color":"#8AA9FF","bold":true}' Literal.String.Single
|
|
"'" Literal.String.Single
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Lore' Name.Attribute
|
|
':' Punctuation
|
|
'[' Punctuation
|
|
"'" Literal.String.Single
|
|
'{"text":"Yep"}' Literal.String.Single
|
|
"'" Literal.String.Single
|
|
']' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'}' Punctuation
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Unbreakable' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'true' Name.Attribute
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Damage' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'20' Literal.Number.Integer
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Enchantments' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'[' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'{' Punctuation
|
|
'id' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
'minecraft:sharpness' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'lvl' Name.Attribute
|
|
':' Punctuation
|
|
'1s' Literal.Number.Integer
|
|
'}' Punctuation
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'{' Punctuation
|
|
'id' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'"' Literal.String.Double
|
|
'minecraft:sweeping' Literal.String.Double
|
|
'"' Literal.String.Double
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'lvl' Name.Attribute
|
|
':' Punctuation
|
|
'20s' Literal.Number.Integer
|
|
'}' Punctuation
|
|
'\n ' Text.Whitespace
|
|
']' Punctuation
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'custom' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'{' 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
|
|
'LongArray' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'[' Punctuation
|
|
'L' Name.Attribute
|
|
';' Punctuation
|
|
' ' Text.Whitespace
|
|
'112233L' Literal.Number.Integer
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'445566L' Literal.Number.Integer
|
|
']' Punctuation
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'ByteArray' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'[' Punctuation
|
|
'B' Name.Attribute
|
|
';' Punctuation
|
|
' ' Text.Whitespace
|
|
'1b' Literal.Number.Integer
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'2b' Literal.Number.Integer
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'3b' Literal.Number.Integer
|
|
']' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Health' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'10.0f' Literal.Number.Float
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'Pos' Name.Attribute
|
|
':' Punctuation
|
|
' ' Text.Whitespace
|
|
'[' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'1.2d' Literal.Number.Float
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'3.4d' Literal.Number.Float
|
|
',' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'5.6d' Literal.Number.Float
|
|
'\n ' Text.Whitespace
|
|
']' Punctuation
|
|
'\n ' Text.Whitespace
|
|
'}' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'}' Punctuation
|
|
'\n' Text
|