aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/lua_spec.lua
diff options
context:
space:
mode:
authorKiyan <yazdani.kiyan@protonmail.com>2022-07-21 13:48:03 +0200
committerGitHub <noreply@github.com>2022-07-21 13:48:03 +0200
commitd7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4 (patch)
treeeac4f46b175c67afbe488a874854913667c319d2 /tests/indent/lua_spec.lua
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar.gz
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar.bz2
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar.lz
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar.xz
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.tar.zst
nvim-treesitter-d7f06bfb1381a2741c1bcbadf1bc1e3ed77abea4.zip
fix(indents): indents for error block (css, lua) (#3207)
Diffstat (limited to 'tests/indent/lua_spec.lua')
-rw-r--r--tests/indent/lua_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/lua_spec.lua b/tests/indent/lua_spec.lua
index f584e5574..3fd4d58a1 100644
--- a/tests/indent/lua_spec.lua
+++ b/tests/indent/lua_spec.lua
@@ -36,8 +36,12 @@ describe("indent Lua:", function()
run:new_line("cond.lua", { on_line = 8, text = "x = x + 1", indent = 4 })
run:new_line("cond.lua", { on_line = 10, text = "x = x + 1", indent = 2 })
run:new_line("cond.lua", { on_line = 12, text = "x = x + 1", indent = 0 })
+ run:new_line("cond.lua", { on_line = 14, text = "x = x + 1", indent = 2 })
+ run:new_line("cond.lua", { on_line = 14, text = "end", indent = 0 })
run:new_line("no-indent-after-paren-pairs.lua", { on_line = 3, text = "x = x + 1", indent = 0 })
run:new_line("no-indent-after-paren-pairs.lua", { on_line = 6, text = "x = x + 1", indent = 0 })
run:new_line("nested-table.lua", { on_line = 5, text = "{}", indent = 4 })
+ run:new_line("method_index_expr.lua", { on_line = 1, text = ":test()", indent = 2 })
+ run:new_line("method_index_expr.lua", { on_line = 3, text = "local a = 1", indent = 0 })
end)
end)