mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
fix(jsx): add missing indent end mark to elements
This commit is contained in:
parent
8c71c6c5ed
commit
2cd89b4bc3
6 changed files with 98 additions and 1 deletions
|
|
@ -46,6 +46,7 @@
|
|||
] @branch
|
||||
(statement_block "{" @branch)
|
||||
|
||||
(parenthesized_expression ("(" (_) ")" @indent_end))
|
||||
["}" "]"] @indent_end
|
||||
|
||||
[
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue