From 627a1e558f8a534a779e017edbe1d3bb5f7a0768 Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 15 Aug 2020 18:48:21 +0200 Subject: C++ highlights: Add initial support for attributes --- queries/cpp/highlights.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'queries/cpp') 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 -- cgit v1.2.3-70-g09d2