From e121e52b2d2c06911ecd0762c15b9f8b4950711b Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Sun, 27 Jun 2021 22:23:15 +0200 Subject: Add comment parsing and highlight whole bracket argument --- queries/cmake/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index 795c330b..ff6f8f10 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -1,22 +1,27 @@ [ (quoted_argument) - (bracket_content) + (bracket_argument) ] @string (variable_ref) @variable +[ + (bracket_comment) + (line_comment) +] @comment + [ "$ENV" "$CACHE" ] @variable.builtin (normal_command (identifier) @function) + [ (function) (endfunction) (macro) (endmacro) - (message) ] @function [ -- cgit v1.2.3