Debian Codegraph @

runtime/queries/_jsx/indents.scm

raw symbols SCIP
1 [
2 (jsx_element)
3 (jsx_self_closing_element)
4 ] @indent
5
6 (parenthesized_expression) @indent
7
8 ; (jsx_element)/(jsx_self_closing_element) indent everything after the opening
9 ; `<tag`, including the line that closes the tag. Pull those closing tokens back
10 ; to the tag's own column (as ecma does for `}`/`)`/`]`): the `</tag>` of an
11 ; element, the `/>` of a self-closing tag, and the `>` of an opening tag whose
12 ; attributes wrap onto their own lines. Each only fires when the token begins a
13 ; line, so single-line tags are unaffected.
14 (jsx_closing_element) @outdent
15 (jsx_self_closing_element "/>" @outdent)
16 (jsx_opening_element ">" @outdent)