diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-24 21:16:00 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-02-05 18:54:55 +0100 |
| commit | 992926ab99e1c6e929e3a1d2873daac8a193907e (patch) | |
| tree | 674d95d9e9b53981cd861516fff5fade17c3fe10 /tests/indent | |
| parent | indent(lua): ignore comment (diff) | |
| download | nvim-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')
| -rw-r--r-- | tests/indent/php/example2.php | 6 | ||||
| -rw-r--r-- | tests/indent/php_spec.lua | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/indent/php/example2.php b/tests/indent/php/example2.php new file mode 100644 index 000000000..4f739f813 --- /dev/null +++ b/tests/indent/php/example2.php @@ -0,0 +1,6 @@ +<?php +function() +{ + $foo = 'bar'; + // indentation with `o` is correct +} 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) |
