aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp/highlights.scm
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-04-23 17:27:37 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-04-26 01:18:28 +0200
commitb79e400a5147da3b3c4c8987df1c7f6353dc23bd (patch)
treebbc143f7f451a8fd74615c3a9e8bf23c2db5f60b /queries/cpp/highlights.scm
parentLink TSComment to Comment (diff)
downloadnvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar.gz
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar.bz2
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar.lz
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar.xz
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.tar.zst
nvim-treesitter-b79e400a5147da3b3c4c8987df1c7f6353dc23bd.zip
highlights(cpp): avoid overwriting C CONSTANTS
Diffstat (limited to 'queries/cpp/highlights.scm')
-rw-r--r--queries/cpp/highlights.scm4
1 files 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