mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
prevent duplicate @keyword captures in string.regexp query
This commit is contained in:
parent
c1eda28306
commit
6f92ca7b4d
1 changed files with 2 additions and 2 deletions
|
|
@ -12,9 +12,9 @@
|
||||||
|
|
||||||
; mark the string values for items interpreted as regex as string.regexp
|
; mark the string values for items interpreted as regex as string.regexp
|
||||||
(binary_condition_expression
|
(binary_condition_expression
|
||||||
(binary_condition_identifier) @keyword
|
(binary_condition_identifier) @_keyword
|
||||||
(identifier) @string.regexp
|
(identifier) @string.regexp
|
||||||
(#any-of? @keyword "match" "ext" "mime" "name" "path"))
|
(#any-of? @_keyword "match" "ext" "mime" "name" "path"))
|
||||||
|
|
||||||
(binary_condition_identifier) @keyword
|
(binary_condition_identifier) @keyword
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue