highlights(cpp): avoid overwriting C CONSTANTS

This commit is contained in:
Stephan Seitz 2021-04-23 17:27:37 +02:00 committed by Stephan Seitz
parent 054c2a5747
commit b79e400a51

View file

@ -39,12 +39,12 @@
((identifier) @type
(#match? @type "^[A-Z]")
(#match? @type "^[A-Z][a-z]")
(#not-has-parent? @type function_declarator))
(namespace_identifier) @namespace
((namespace_identifier) @type
(#match? @type "^[A-Z]"))
(#match? @type "^[A-Z].*[a-z]"))
((namespace_identifier) @constant
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
(namespace_definition