aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-06-14 15:12:38 +0200
committerStephan Seitz <stephan.seitz@fau.de>2020-06-15 11:51:28 +0200
commit8bc00cf02a5bc73541ba76ad8ea70fd928fffce2 (patch)
tree49db122ce1f1b5ce1a9b77724c96a085c4a60710 /queries/cpp
parentUpdate C/C++ highlights to new query syntax (diff)
downloadnvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar.gz
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar.bz2
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar.lz
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar.xz
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.tar.zst
nvim-treesitter-8bc00cf02a5bc73541ba76ad8ea70fd928fffce2.zip
Change regexes in C/C++ highlights
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index 68e5047ab..92909f4d9 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -23,7 +23,7 @@
((namespace_identifier) @type
(#match? @type "^[A-Z]"))
((namespace_identifier) @constant
- (#match? @constant "^[A-Z][A-Z_1-9]*$"))
+ (#match? @constant "^[A-Z][A-Z_0-9]*$"))
(destructor_name
name: (_) @function)