Do not highlight Uppercase function as type

This commit is contained in:
Stephan Seitz 2020-11-18 19:07:24 +01:00 committed by Thomas Vigouroux
parent 3674ad89df
commit 289cdc9da8
2 changed files with 6 additions and 4 deletions

View file

@ -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
[

View file

@ -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