From b79e400a5147da3b3c4c8987df1c7f6353dc23bd Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 23 Apr 2021 17:27:37 +0200 Subject: highlights(cpp): avoid overwriting C CONSTANTS --- queries/cpp/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 7110f9836..1efdf759a 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -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 -- cgit v1.2.3-70-g09d2