fix(jsx): add missing indent end mark to elements

This commit is contained in:
Pham Huy Hoang 2023-01-04 01:57:40 +09:00 committed by Stephan Seitz
parent 8c71c6c5ed
commit 2cd89b4bc3
6 changed files with 98 additions and 1 deletions

View file

@ -46,6 +46,7 @@
] @branch
(statement_block "{" @branch)
(parenthesized_expression ("(" (_) ")" @indent_end))
["}" "]"] @indent_end
[

View file

@ -2,11 +2,20 @@
(jsx_fragment)
(jsx_element)
(jsx_self_closing_element)
(jsx_expression)
] @indent
(parenthesized_expression) @indent
(jsx_fragment
("<" ">" (_) "<" @branch "/" ">" @indent_end)
)
(jsx_closing_element (">" @indent_end))
(jsx_self_closing_element ">" @indent_end)
[
(jsx_closing_element)
">"
] @branch
; <button
; />
(jsx_self_closing_element "/" @branch)