diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-11 23:46:51 +0100 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2022-04-04 09:03:30 +0200 |
| commit | bda4b35f76a628f9212590c39255edce221bcf7b (patch) | |
| tree | 67ed842ed90833dd5c1bc4146054a6f078d99073 /tests/indent/javascript_spec.lua | |
| parent | Changed quotes to appease stylua (diff) | |
| download | nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar.gz nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar.bz2 nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar.lz nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar.xz nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.tar.zst nvim-treesitter-bda4b35f76a628f9212590c39255edce221bcf7b.zip | |
indents(ecma): use auto indent on (ERROR)
Fixes #2515
Diffstat (limited to 'tests/indent/javascript_spec.lua')
| -rw-r--r-- | tests/indent/javascript_spec.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/javascript_spec.lua b/tests/indent/javascript_spec.lua index c832a9083..855a394f2 100644 --- a/tests/indent/javascript_spec.lua +++ b/tests/indent/javascript_spec.lua @@ -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) |
