diff options
| -rw-r--r-- | queries/c/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/cpp/highlights.scm | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/queries/c/highlights.scm b/queries/c/highlights.scm index cef57a005..ccda6632c 100644 --- a/queries/c/highlights.scm +++ b/queries/c/highlights.scm @@ -121,7 +121,7 @@ (((field_expression (field_identifier) @property)) @_parent - (not-has-parent? @_parent template_method function_declarator call_expression)) + (#not-has-parent? @_parent template_method function_declarator call_expression)) (statement_identifier) @label [ 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 |
