mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
5
runtime/queries/html/folds.scm
Normal file
5
runtime/queries/html/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(element)
|
||||
(style_element)
|
||||
(script_element)
|
||||
] @fold
|
||||
7
runtime/queries/html/highlights.scm
Normal file
7
runtime/queries/html/highlights.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
; inherits: html_tags
|
||||
|
||||
(doctype) @constant
|
||||
|
||||
"<!" @tag.delimiter
|
||||
|
||||
(entity) @character.special
|
||||
1
runtime/queries/html/indents.scm
Normal file
1
runtime/queries/html/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: html_tags
|
||||
26
runtime/queries/html/injections.scm
Normal file
26
runtime/queries/html/injections.scm
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
; inherits html_tags
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_py_script)
|
||||
(text) @injection.content
|
||||
(#any-of? @_py_script "py-script" "py-repl")
|
||||
(#set! injection.language "python"))
|
||||
|
||||
(script_element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attr
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @_type)))
|
||||
(raw_text) @injection.content
|
||||
(#eq? @_attr "type")
|
||||
; not adding type="py" here as it's handled by html_tags
|
||||
(#any-of? @_type "pyscript" "py-script")
|
||||
(#set! injection.language "python"))
|
||||
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_py_config)
|
||||
(text) @injection.content
|
||||
(#eq? @_py_config "py-config")
|
||||
(#set! injection.language "toml"))
|
||||
1
runtime/queries/html/locals.scm
Normal file
1
runtime/queries/html/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(element) @local.scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue