mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 22:10:01 -04:00
refactor: remove include-children from queries (#5226)
These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2
This commit is contained in:
parent
15d327fe63
commit
bfb4601f48
6 changed files with 32 additions and 58 deletions
|
|
@ -5,8 +5,7 @@
|
|||
(tag_name) @_py_script)
|
||||
(text) @injection.content
|
||||
(#any-of? @_py_script "py-script" "py-repl")
|
||||
(#set! injection.language "python")
|
||||
(#set! injection.include-children))
|
||||
(#set! injection.language "python"))
|
||||
|
||||
(script_element
|
||||
(start_tag
|
||||
|
|
@ -18,13 +17,11 @@
|
|||
(#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))
|
||||
(#set! injection.language "python"))
|
||||
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @_py_config)
|
||||
(text) @injection.content
|
||||
(#eq? @_py_config "py-config")
|
||||
(#set! injection.language "toml")
|
||||
(#set! injection.include-children))
|
||||
(#set! injection.language "toml"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue