From 06c9f1897c7f9524f44566d8cf3bfa558a4ceebb Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Sat, 15 Aug 2020 18:48:21 +0200 Subject: [PATCH] C++ highlights: Add initial support for attributes --- queries/cpp/highlights.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/queries/cpp/highlights.scm b/queries/cpp/highlights.scm index 0eb541269..24087e204 100644 --- a/queries/cpp/highlights.scm +++ b/queries/cpp/highlights.scm @@ -112,3 +112,9 @@ "::" @operator "..." @operator + +; Annotations (not fully supported by parser) + +((ERROR) @annotation + (vim-match? @annotation "\[?\[.*\]\]?.*$")) +(attribute) @annotation