|
@@ -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"
|