Use #any-of? instead of #match? where posible

This commit is contained in:
Joakker 2021-06-24 14:45:31 -04:00 committed by Stephan Seitz
parent 55c5620aa3
commit c699cc2e47
9 changed files with 31 additions and 15 deletions

View file

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