From ce866ecc2ff404085e07f256a65e203a8d85dcda Mon Sep 17 00:00:00 2001 From: Cyril Mizzi Date: Wed, 10 Nov 2021 11:35:08 +0100 Subject: 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. --- queries/vue/indents.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 queries/vue/indents.scm 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 -- cgit v1.2.3-70-g09d2