aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index e4936b98e..05d50426a 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -25,14 +25,16 @@
(((field_expression
(field_identifier) @method)) @_parent
- (has-parent? @_parent template_method function_declarator call_expression))
+ (#has-parent? @_parent template_method function_declarator call_expression))
(template_function
name: (scoped_identifier
name: (identifier) @function))
-((identifier) @type (#match? @type "^[A-Z]"))
+((identifier) @type
+ (#match? @type "^[A-Z]")
+ (#not-has-parent? @type function_declarator))
(namespace_identifier) @namespace
((namespace_identifier) @type
@@ -148,5 +150,5 @@
; Annotations (not fully supported by parser)
((ERROR) @attribute
- (vim-match? @attribute "\[?\[.*\]\]?.*$"))
+ (#vim-match? @attribute "\[?\[.*\]\]?.*$"))
(attribute) @attribute