aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/lua/no-indent-after-paren-pairs.lua6
-rw-r--r--tests/indent/lua_spec.lua2
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/indent/lua/no-indent-after-paren-pairs.lua b/tests/indent/lua/no-indent-after-paren-pairs.lua
new file mode 100644
index 000000000..2243b4029
--- /dev/null
+++ b/tests/indent/lua/no-indent-after-paren-pairs.lua
@@ -0,0 +1,6 @@
+-- Issue #2476
+require("treesitter").setup(
+)
+
+local table = {
+}
diff --git a/tests/indent/lua_spec.lua b/tests/indent/lua_spec.lua
index b90c9b66e..2da965e48 100644
--- a/tests/indent/lua_spec.lua
+++ b/tests/indent/lua_spec.lua
@@ -36,5 +36,7 @@ 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("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 })
end)
end)