Fixed the textmate grammar erroneously tagging enum members and const variables as language constants (#737)

This commit is contained in:
ProgramGamer
2024-10-19 15:40:23 -03:00
committed by GitHub
parent 96510971f4
commit 43bb36ca30

View File

@@ -367,7 +367,7 @@
"match": "\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)",
"captures": {
"1": { "name": "entity.name.type.class.gdscript" },
"2": { "name": "constant.language.gdscript" }
"2": { "name": "variable.other.enummember.gdscript" }
}
},
"class_name": {
@@ -442,7 +442,7 @@
},
"const_vars": {
"match": "\\b([A-Z_][A-Z_0-9]*)\\b",
"name": "constant.language.gdscript"
"name": "variable.other.constant.gdscript"
},
"pascal_case_class": {
"match": "\\b([A-Z]+[a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",