Skip to content

Commit a58d0e4

Browse files
GDScript: Add abstract functions to highlight grammar (#1000)
Also adds `is not`
1 parent 741ee83 commit a58d0e4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

syntaxes/GDScript.tmLanguage.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,11 @@
366366
}
367367
},
368368
"class_is": {
369-
"match": "\\s+(is)\\s+([a-zA-Z_]\\w*)",
369+
"match": "\\s+(is)\\s+(not?)\\s+\\s+([a-zA-Z_]\\w*)",
370370
"captures": {
371371
"1": { "name": "storage.type.is.gdscript" },
372-
"2": { "name": "entity.name.type.class.gdscript" }
372+
"2": { "name": "storage.type.not.gdscript" },
373+
"3": { "name": "entity.name.type.class.gdscript" }
373374
}
374375
},
375376
"class_enum": {
@@ -507,7 +508,7 @@
507508
"1": { "name": "keyword.language.gdscript storage.type.function.gdscript" },
508509
"2": { "name": "entity.name.function.gdscript" }
509510
},
510-
"end": "(:)",
511+
"end": "(:)|\n",
511512
"endCaptures": { "1": { "name": "punctuation.section.function.begin.gdscript" } },
512513
"patterns": [
513514
{ "include": "#parameters" },

0 commit comments

Comments
 (0)