mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
Use #any-of? instead of #match? where posible
This commit is contained in:
parent
55c5620aa3
commit
c699cc2e47
9 changed files with 31 additions and 15 deletions
|
|
@ -6,7 +6,7 @@
|
|||
(attribute
|
||||
(quoted_attribute_value (attribute_value) @_lang)))
|
||||
(raw_text) @scss)
|
||||
(#match? @_lang "(scss|postcss|less)")
|
||||
(#any-of? @_lang "scss" "postcss" "less")
|
||||
)
|
||||
|
||||
((attribute
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
(attribute
|
||||
(quoted_attribute_value (attribute_value) @_lang)))
|
||||
(raw_text) @typescript)
|
||||
(#match? @_lang "(ts|typescript)")
|
||||
(#any-of? @_lang "ts" "typescript")
|
||||
)
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue