mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
parent
f84a634ffd
commit
bda4b35f76
3 changed files with 22 additions and 0 deletions
|
|
@ -49,3 +49,5 @@
|
||||||
(comment)
|
(comment)
|
||||||
(template_string)
|
(template_string)
|
||||||
] @ignore
|
] @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
|
} do
|
||||||
run:new_line("ecma/variable.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4])
|
run:new_line("ecma/variable.js", { on_line = info[1], text = "hello()", indent = info[2] }, info[3], info[4])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
for _, line in ipairs { 2, 6 } do
|
||||||
|
run:new_line("ecma/issue-2515.js", { on_line = line, text = "{}", indent = 4 })
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue