mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -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
18
tests/indent/jsx/element_attributes.jsx
Normal file
18
tests/indent/jsx/element_attributes.jsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
style={{
|
||||
color: 'blue',
|
||||
}}
|
||||
disabled
|
||||
>
|
||||
</Button>
|
||||
<Button
|
||||
style={{
|
||||
color: 'blue',
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
10
tests/indent/jsx/issue-3986.jsx
Normal file
10
tests/indent/jsx/issue-3986.jsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<p>This is a test</p>
|
||||
</div>
|
||||
<Button/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
16
tests/indent/jsx/jsx_expression.jsx
Normal file
16
tests/indent/jsx/jsx_expression.jsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
style={
|
||||
}
|
||||
>
|
||||
</Button>
|
||||
<Button
|
||||
style={{
|
||||
color: 'blue',
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue