diff options
| author | Cyril Mizzi <cmizzi@users.noreply.github.com> | 2021-11-10 11:35:08 +0100 |
|---|---|---|
| committer | Santos Gallegos <stsewd@protonmail.com> | 2021-11-11 21:00:33 -0500 |
| commit | ce866ecc2ff404085e07f256a65e203a8d85dcda (patch) | |
| tree | 21991fd2b8d4ab055b6d11e301fc7fc68d64e582 /queries/vue | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar.gz nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar.bz2 nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar.lz nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar.xz nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.tar.zst nvim-treesitter-ce866ecc2ff404085e07f256a65e203a8d85dcda.zip | |
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.
Diffstat (limited to 'queries/vue')
| -rw-r--r-- | queries/vue/indents.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/queries/vue/indents.scm b/queries/vue/indents.scm new file mode 100644 index 000000000..7536fa7e5 --- /dev/null +++ b/queries/vue/indents.scm @@ -0,0 +1,12 @@ +[ + (element) + (template_element) +] @indent + +[ + (end_tag) + ">" + "/>" +] @branch + +(comment) @ignore |
