aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/php_spec.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-24 21:16:00 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-05 18:54:55 +0100
commit992926ab99e1c6e929e3a1d2873daac8a193907e (patch)
tree674d95d9e9b53981cd861516fff5fade17c3fe10 /tests/indent/php_spec.lua
parentindent(lua): ignore comment (diff)
downloadnvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar.gz
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar.bz2
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar.lz
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar.xz
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.tar.zst
nvim-treesitter-992926ab99e1c6e929e3a1d2873daac8a193907e.zip
indents(php): add another test
Diffstat (limited to 'tests/indent/php_spec.lua')
-rw-r--r--tests/indent/php_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua
index f081c3a22..b4f2eac47 100644
--- a/tests/indent/php_spec.lua
+++ b/tests/indent/php_spec.lua
@@ -16,5 +16,9 @@ describe("indent PHP:", function()
describe("new line:", function()
run:new_line("example.php", { on_line = 11, text = "// new line starts 1 indentation to far", indent = 4 })
+ run:new_line(
+ "example2.php",
+ { on_line = 5, text = "// indendation with `enter` in insert mode is not correct", indent = 4 }
+ )
end)
end)