diff options
| author | Joakker <joaquinandresleon108@gmail.com> | 2021-06-24 14:45:31 -0400 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-06-25 00:22:48 +0200 |
| commit | c699cc2e47fe302e9f414356cceb20a309be5bc6 (patch) | |
| tree | 961806f7baf8cc44432ffc813c71c5304907cb16 /queries/svelte | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.gz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.bz2 nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.lz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.xz nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.tar.zst nvim-treesitter-c699cc2e47fe302e9f414356cceb20a309be5bc6.zip | |
Use #any-of? instead of #match? where posible
Diffstat (limited to 'queries/svelte')
| -rw-r--r-- | queries/svelte/injections.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/queries/svelte/injections.scm b/queries/svelte/injections.scm index cca623f3a..6f29bb9c2 100644 --- a/queries/svelte/injections.scm +++ b/queries/svelte/injections.scm @@ -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 |
