aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2023-04-09 01:18:44 +0900
committerAmaan Qureshi <amaanq12@gmail.com>2023-04-08 12:34:08 -0400
commitab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9 (patch)
treec1c466a45cf9ca3bfdfad4432e448cbb0ba368eb
parentvim: switch to parser maintained by Neovim (#4610) (diff)
downloadnvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar.gz
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar.bz2
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar.lz
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar.xz
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.tar.zst
nvim-treesitter-ab39fe6c862f18f61cc5bd8c5dc7c8a0f11efcd9.zip
refactor(html_inject): Use lua-match instead of match
-rw-r--r--queries/html_tags/injections.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/queries/html_tags/injections.scm b/queries/html_tags/injections.scm
index dd971b7d9..ba6d35414 100644
--- a/queries/html_tags/injections.scm
+++ b/queries/html_tags/injections.scm
@@ -5,7 +5,8 @@
(
(style_element
(start_tag) @_no_type_lang
- (#not-match? @_no_type_lang "\\s(lang|type)\\s*\\=")
+ (#not-lua-match? @_no_type_lang "%slang%s*=")
+ (#not-lua-match? @_no_type_lang "%stype%s*=")
(raw_text) @css))
(