prevent duplicate @keyword captures in string.regexp query

This commit is contained in:
purarue 2025-09-13 11:54:22 -07:00
parent c1eda28306
commit 6f92ca7b4d

View file

@ -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