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/examplefiles/snbt/main.snbt
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

23 lines
No EOL
543 B
SNBT

{
display: {
Name:'{"text":"My Epic Sword","color":"#8AA9FF","bold":true}',
Lore:['{"text":"Yep"}']
},
Unbreakable: true,
Damage: 20,
Enchantments: [
{id: "minecraft:sharpness", lvl:1s},
{id: "minecraft:sweeping", lvl:20s}
],
custom: {
UUID: [I;459130179,987513928,-1425663264,-175461800],
LongArray: [L; 112233L, 445566L],
ByteArray: [B; 1b, 2b, 3b]
Health: 10.0f,
Pos: [
1.2d,
3.4d,
5.6d
]
}
}