diff options
| -rw-r--r-- | queries/html_tags/injections.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/queries/html_tags/injections.scm b/queries/html_tags/injections.scm index ba6d35414..e8926b6b8 100644 --- a/queries/html_tags/injections.scm +++ b/queries/html_tags/injections.scm @@ -25,7 +25,8 @@ ( (script_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) @javascript)) ; <script type="mimetype-or-well-known-script-type"> @@ -47,11 +48,11 @@ ; <a @click="${e => console.log(e)}"> ((attribute (quoted_attribute_value (attribute_value) @javascript)) - (#match? @javascript "\\$\\{") + (#lua-match? @javascript "%${") (#offset! @javascript 0 2 0 -1)) ((attribute (attribute_value) @javascript) - (#match? @javascript "\\$\\{") + (#lua-match? @javascript "%${") (#offset! @javascript 0 2 0 -2)) (comment) @comment |
