mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 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
|
||||
5
runtime/queries/html/highlights.scm
Normal file
5
runtime/queries/html/highlights.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
; inherits: html_tags
|
||||
|
||||
(doctype) @constant
|
||||
|
||||
"<!" @tag.delimiter
|
||||
1
runtime/queries/html/indents.scm
Normal file
1
runtime/queries/html/indents.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
; inherits: html_tags
|
||||
30
runtime/queries/html/injections.scm
Normal file
30
runtime/queries/html/injections.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
; 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")
|
||||
(#set! injection.include-children))
|
||||
|
||||
(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")
|
||||
(#set! injection.include-children))
|
||||
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_py_config)
|
||||
(text) @injection.content
|
||||
(#eq? @_py_config "py-config")
|
||||
(#set! injection.language "toml")
|
||||
(#set! injection.include-children))
|
||||
1
runtime/queries/html/locals.scm
Normal file
1
runtime/queries/html/locals.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(element) @scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue