aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm5
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index 92909f4d9..0d8295a1d 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -52,7 +52,7 @@
((call_expression
function: (field_expression
field: (field_identifier) @constructor))
-(#match? @function "^[A-Z]"))
+(#match? @constructor "^[A-Z]"))
;; constructing a type in a intizializer list: Constructor (): **SuperType (1)**
((field_initializer
@@ -64,8 +64,7 @@
; Constants
-;(this) @constant.builtin
-(this) @keyword
+(this) @constant.builtin
(nullptr) @constant
(true) @boolean