aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpp
diff options
context:
space:
mode:
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