From 6f92ca7b4d81ce471c661a8daed1db1725522910 Mon Sep 17 00:00:00 2001 From: purarue <7804791+purarue@users.noreply.github.com> Date: Sat, 13 Sep 2025 11:54:22 -0700 Subject: [PATCH] prevent duplicate @keyword captures in string.regexp query --- runtime/queries/rifleconf/highlights.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/queries/rifleconf/highlights.scm b/runtime/queries/rifleconf/highlights.scm index f594488ab..2ac837a3e 100644 --- a/runtime/queries/rifleconf/highlights.scm +++ b/runtime/queries/rifleconf/highlights.scm @@ -12,9 +12,9 @@ ; mark the string values for items interpreted as regex as string.regexp (binary_condition_expression - (binary_condition_identifier) @keyword + (binary_condition_identifier) @_keyword (identifier) @string.regexp - (#any-of? @keyword "match" "ext" "mime" "name" "path")) + (#any-of? @_keyword "match" "ext" "mime" "name" "path")) (binary_condition_identifier) @keyword