mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2025-12-31 13:48:24 +03:00
Syntax highlighting fixes (#593)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user