Browse Source

Recognize pascal-case identifiers that ends with 2 or more upper case letters as `pascal_case_class` (#908)

Co-authored-by: Seth <[email protected]>
Oasin Lyu 2 weeks ago
parent
commit
9d7187970a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      syntaxes/GDScript.tmLanguage.json

+ 1 - 1
syntaxes/GDScript.tmLanguage.json

@@ -454,7 +454,7 @@
 			"name": "variable.other.constant.gdscript"
 			"name": "variable.other.constant.gdscript"
 		},
 		},
 		"pascal_case_class": {
 		"pascal_case_class": {
-			"match": "\\b([A-Z]+[a-z_0-9]*([A-Z]?[a-z_0-9]+)*[A-Z]?)\\b",
+			"match": "\\b[A-Z]+(?:[a-z]+[A-Za-z0-9_]*)+\\b",
 			"name": "entity.name.type.class.gdscript"
 			"name": "entity.name.type.class.gdscript"
 		},
 		},
 		"signal_declaration_bare": {
 		"signal_declaration_bare": {