Syntax highlighting fixes (#593)

This commit is contained in:
David Kincaid
2024-02-21 15:07:05 -05:00
committed by GitHub
parent 436ff64d07
commit 0c9c2554fb
2 changed files with 22 additions and 0 deletions

View File

@@ -74,6 +74,7 @@
{ "include": "#function_call" },
{ "include": "#comment" },
{ "include": "#self" },
{ "include": "#func" },
{ "include": "#letter" },
{ "include": "#numbers" },
{ "include": "#builtin_classes" },
@@ -149,6 +150,10 @@
"match": "\\bself\\b",
"name": "variable.language.gdscript"
},
"func": {
"match": "\\bfunc\\b",
"name": "keyword.language.gdscript"
},
"logic_operator": {
"match": "\\b(and|or|not|!)\\b",
"name": "keyword.operator.wordlike.gdscript"
@@ -238,6 +243,14 @@
},
"end": "$|;",
"patterns": [
{
"match": "(:)?\\s*(set|get)\\s+=\\s+([a-zA-Z_]\\w*)",
"captures": {
"1": { "name": "punctuation.separator.annotation.gdscript" },
"2": { "name": "keyword.language.gdscript storage.type.const.gdscript" },
"3": { "name": "entity.name.function.gdscript" }
}
},
{
"match": ":=|=(?!=)",
"name": "keyword.operator.assignment.gdscript"