Debian Codegraph @

runtime/queries/vue/indents.scm

raw symbols SCIP
1 ; Vue single-file components are HTML-like: indent the contents of <template>
2 ; and of nested elements, and pull the end tag — and the close of a multi-line
3 ; start / self-closing tag — back to the element's column. Mirrors the html/jsx
4 ; rules.
5 ;
6 ; <script> and <style> bodies are deliberately *not* indented: Vue convention
7 ; (and Prettier's default) keeps them at column 0, and their embedded JS/CSS is
8 ; indented by the injected language's own indent query.
9 [
10 (element)
11 (template_element)
12 ] @indent
13
14 (end_tag) @outdent
15 (start_tag ">" @outdent)
16 (self_closing_tag "/>" @outdent)