diff options
| author | BlockLune <39331194+BlockLune@users.noreply.github.com> | 2025-08-30 00:30:18 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-29 18:30:18 +0200 |
| commit | cd64fd3f448eb6cc529830c7f265f7584168572b (patch) | |
| tree | a017d25a103291d0e05b914486ac7d346a6ad341 /runtime/queries/wxml/indents.scm | |
| parent | feat(matlab)!: update parser and queries (diff) | |
| download | nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar.gz nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar.bz2 nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar.lz nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar.xz nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.tar.zst nvim-treesitter-cd64fd3f448eb6cc529830c7f265f7584168572b.zip | |
feat(wxml): add parser and queries
Diffstat (limited to 'runtime/queries/wxml/indents.scm')
| -rw-r--r-- | runtime/queries/wxml/indents.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/runtime/queries/wxml/indents.scm b/runtime/queries/wxml/indents.scm new file mode 100644 index 000000000..30172bb37 --- /dev/null +++ b/runtime/queries/wxml/indents.scm @@ -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 |
