From 7e9139db685ae88bf55e224a7b68e02b5dcfcb88 Mon Sep 17 00:00:00 2001 From: Gartox Date: Tue, 13 Feb 2024 18:50:29 +0100 Subject: feat(lalrpop): highlight annotation macros Lalrpop support putting annotation like `#[precedence(level = "1")]`. This commit aims to highlight `precedence` with the `function.macro` highlight group, like rust does with its proc macros. --- queries/lalrpop/highlights.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/queries/lalrpop/highlights.scm b/queries/lalrpop/highlights.scm index 58d7efd4f..336845092 100644 --- a/queries/lalrpop/highlights.scm +++ b/queries/lalrpop/highlights.scm @@ -77,3 +77,6 @@ (string_literal) @string (regex_literal) @string + +(annotation + (id) @function.macro) -- cgit v1.2.3-70-g09d2