mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
injections(html): fix faulty css/js injections
Group queries to reduce duplicate injection tree use only regex
This commit is contained in:
parent
3731cf1c0c
commit
d11dd552db
3 changed files with 17 additions and 27 deletions
|
|
@ -19,6 +19,10 @@
|
|||
<!-- ^ javascript -->
|
||||
<script type="text/javascript"> const x = 1 </script>
|
||||
<!-- ^ javascript -->
|
||||
<script type="module"> import { foo } from "bar" </script>
|
||||
<!-- ^ javascript -->
|
||||
<script defer type="text/javascript"> const x = 1 </script>
|
||||
<!-- ^ javascript -->
|
||||
<div style="height: 100%">
|
||||
<!-- ^ css -->
|
||||
Test div to test css injections for style attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue