aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-08-15 18:48:21 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2020-08-22 19:32:59 +0200
commit627a1e558f8a534a779e017edbe1d3bb5f7a0768 (patch)
tree9143b8070f2a3ff568f63c814dc6d7e3d1988ca1 /queries/cpp
parentMerge pull request #330 from steelsojka/fix-do-not-reattach (diff)
downloadnvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar.gz
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar.bz2
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar.lz
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar.xz
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.tar.zst
nvim-treesitter-627a1e558f8a534a779e017edbe1d3bb5f7a0768.zip
C++ highlights: Add initial support for attributes
Diffstat (limited to 'queries/cpp')
-rw-r--r--queries/cpp/highlights.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm
index fe7283136..7576dd21f 100644
--- a/queries/cpp/highlights.scm
+++ b/queries/cpp/highlights.scm
@@ -117,3 +117,9 @@
"::" @operator
"..." @operator
+
+; Annotations (not fully supported by parser)
+
+((ERROR) @annotation
+ (vim-match? @annotation "\[?\[.*\]\]?.*$"))
+(attribute) @annotation