mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(wxml): add parser and queries
This commit is contained in:
parent
16da7ded58
commit
cd64fd3f44
6 changed files with 124 additions and 0 deletions
32
runtime/queries/wxml/indents.scm
Normal file
32
runtime/queries/wxml/indents.scm
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
; inherits: html_tags
|
||||
|
||||
(block_element) @indent.begin
|
||||
|
||||
(template_element) @indent.begin
|
||||
|
||||
(wxs_element) @indent.begin
|
||||
|
||||
(block_element
|
||||
(block_end_tag
|
||||
">" @indent.end))
|
||||
|
||||
(template_element
|
||||
(template_end_tag
|
||||
">" @indent.end))
|
||||
|
||||
(wxs_element
|
||||
(wxs_end_tag
|
||||
">" @indent.end))
|
||||
|
||||
(block_element
|
||||
(block_end_tag) @indent.branch)
|
||||
|
||||
(template_element
|
||||
(template_end_tag) @indent.branch)
|
||||
|
||||
(wxs_element
|
||||
(wxs_end_tag) @indent.branch)
|
||||
|
||||
(import_statement) @indent.ignore
|
||||
|
||||
(include_statement) @indent.ignore
|
||||
Loading…
Add table
Add a link
Reference in a new issue