2022-01-16 15:31:11 -05:00
|
|
|
{
|
|
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
|
|
"name": "ChickenScript",
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"include": "#keywords"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#variables"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#strings"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#constants"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#comments"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#overrides"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repository": {
|
|
|
|
"keywords": {
|
|
|
|
"patterns": [{
|
|
|
|
"name": "keyword.control.chickenscript",
|
|
|
|
"match": "\\b(if|elseif|else|then|while|do|for|return|function|datapack|end)\\b"
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"variables": {
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"name": "entity.name.class",
|
|
|
|
"match": "\\b(int|deci|vector|NBT|Entity)\\b"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "keyword.other",
|
|
|
|
"match": "\\b(property|singular)\\b"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"strings": {
|
|
|
|
"name": "string.quoted.double.chickenscript",
|
|
|
|
"begin": "\"",
|
|
|
|
"end": "\"",
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"name": "constant.character.escape.chickenscript",
|
|
|
|
"match": "\\\\."
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"constants": {
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"name": "constant.numeric",
|
|
|
|
"match": "\\d+"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "constant.language",
|
2022-05-07 19:43:59 -04:00
|
|
|
"match": "\\b([@].|self)\\b"
|
2022-01-16 15:31:11 -05:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"comments": {
|
|
|
|
"patterns": [{
|
|
|
|
"name": "comment.line.number-sign.chickenscript",
|
|
|
|
"match": "#.*"
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
"overrides": {
|
|
|
|
"begin": "\\s*!",
|
|
|
|
"end": "\n",
|
|
|
|
"beginCaptures": {
|
|
|
|
"0": { "name": "keyword.control" }
|
|
|
|
},
|
|
|
|
"name": "meta.embedded.block.mcfunction",
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"name": "constant.language",
|
|
|
|
"match": "&[^\\s]*"
|
|
|
|
},
|
|
|
|
{ "include": "source.mcfunction" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scopeName": "source.mdcs"
|
|
|
|
}
|