From 374b4b508e2fc02c24011cadc5b789e73d79a3b3 Mon Sep 17 00:00:00 2001 From: purarue <7804791+purarue@users.noreply.github.com> Date: Sat, 13 Sep 2025 11:46:40 -0700 Subject: [PATCH] add condition_negation, string.regexp matches --- runtime/queries/rifleconf/highlights.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/runtime/queries/rifleconf/highlights.scm b/runtime/queries/rifleconf/highlights.scm index a63b78fa9..f594488ab 100644 --- a/runtime/queries/rifleconf/highlights.scm +++ b/runtime/queries/rifleconf/highlights.scm @@ -5,7 +5,16 @@ ";" ] @punctuation.delimiter -"=" @operator +[ + "=" + (condition_negation) +] @operator + +; mark the string values for items interpreted as regex as string.regexp +(binary_condition_expression + (binary_condition_identifier) @keyword + (identifier) @string.regexp + (#any-of? @keyword "match" "ext" "mime" "name" "path")) (binary_condition_identifier) @keyword