mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
parent
f84a634ffd
commit
bda4b35f76
3 changed files with 22 additions and 0 deletions
|
|
@ -49,3 +49,5 @@
|
|||
(comment)
|
||||
(template_string)
|
||||
] @ignore
|
||||
|
||||
(ERROR) @auto
|
||||
|
|
|
|||
16
tests/indent/ecma/issue-2515.js
Normal file
16
tests/indent/ecma/issue-2515.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
function test() {
|
||||
return [
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
{
|
||||
test: "test",
|
||||
test_one: "test",
|
||||
},
|
||||
];
|
||||
}
|
||||
|
|
@ -109,5 +109,9 @@ describe("indent JavaScript:", function()
|
|||
} do
|
||||
run:new_line("ecma/variable.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4])
|
||||
end
|
||||
|
||||
for _, line in ipairs { 2, 6 } do
|
||||
run:new_line("ecma/issue-2515.js", { on_line = line, text = "{}", indent = 4 })
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue