From 5a8b5ab019a4fcea1372983d65dcb42dd07b2df5 Mon Sep 17 00:00:00 2001 From: Uy Ha <8091245+uyha@users.noreply.github.com> Date: Fri, 10 Sep 2021 18:42:23 +0200 Subject: [PATCH] [cmake] Add highlighting for boolean values (#1801) Co-authored-by: Stephan Seitz --- queries/cmake/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index cecf2f842..720191734 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -64,6 +64,10 @@ (#match? @function.builtin "\\c^(set)$") ) +((argument) @boolean + (#match? @boolean "\\c^(1|on|yes|true|y|0|off|no|false|n|ignore|notfound|.*-notfound)$") +) + (if_command (if) (argument) @keyword.operator