mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(vue): add indents.scm file
There's no indentation file for Vue. This implementation is based on the HTML indentation file with a minor support for the `template_element` tag. As JS is bind with the JS Tree-sitter, the indentation is already fine.
This commit is contained in:
parent
0e25e0e989
commit
ce866ecc2f
1 changed files with 12 additions and 0 deletions
12
queries/vue/indents.scm
Normal file
12
queries/vue/indents.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
(element)
|
||||
(template_element)
|
||||
] @indent
|
||||
|
||||
[
|
||||
(end_tag)
|
||||
">"
|
||||
"/>"
|
||||
] @branch
|
||||
|
||||
(comment) @ignore
|
||||
Loading…
Add table
Add a link
Reference in a new issue