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/mcfunction/selectors.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

73 lines
2 KiB
Text

---input---
execute
as @a[
advancements={
minecraft:story/form_obsidian={
foo=true,
bar=false
},
minecraft:story/follow_ender_eye={
foo=false, bar=true
}
}
] run
say this command is nuts
---tokens---
'execute' Name.Builtin
'\n ' Text.Whitespace
'as' Keyword.Constant
' ' Text.Whitespace
'@a' Name.Variable
'[' Punctuation
'\n ' Text.Whitespace
'advancements' Name.Attribute
'=' Punctuation
'{' Punctuation
'\n ' Text.Whitespace
'minecraft:story/form_obsidian' Name.Attribute
'=' Punctuation
'{' Punctuation
'\n ' Text.Whitespace
'foo' Name.Attribute
'=' Punctuation
'true' Name.Tag
',' Punctuation
'\n ' Text.Whitespace
'bar' Name.Attribute
'=' Punctuation
'false' Name.Tag
'\n ' Text.Whitespace
'}' Punctuation
',' Punctuation
'\n ' Text.Whitespace
'minecraft:story/follow_ender_eye' Name.Attribute
'=' Punctuation
'{' Punctuation
'\n ' Text.Whitespace
'foo' Name.Attribute
'=' Punctuation
'false' Name.Tag
',' Punctuation
' ' Text.Whitespace
'bar' Name.Attribute
'=' Punctuation
'true' Name.Tag
'\n ' Text.Whitespace
'}' Punctuation
'\n ' Text.Whitespace
'}' Punctuation
'\n ' Text.Whitespace
']' Punctuation
' ' Text.Whitespace
'run' Keyword.Constant
'\n say' Name.Builtin
' ' Text.Whitespace
'this' Keyword.Constant
' ' Text.Whitespace
'command' Keyword.Constant
' ' Text.Whitespace
'is' Keyword.Constant
' ' Text.Whitespace
'nuts' Keyword.Constant
'\n' Text.Whitespace