From 15f27cf3014f5f437c16f17e3da73f420f61432b Mon Sep 17 00:00:00 2001 From: Shatur95 Date: Sun, 18 Apr 2021 20:17:01 +0300 Subject: [PATCH] Fix identifier type check --- queries/gdscript/highlights.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index 57009aea3..06801747b 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -30,7 +30,8 @@ (#match? @type "^[A-Z]")) ((identifier) @constant (#match? @constant "^[A-Z][A-Z_0-9]*$")) -((identifier) @type . ".") +((identifier) @type + (#match? @type "^[A-Z][A-Z_0-9]*$") . (_)) ((attribute (identifier) @field)