aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-02-12 23:12:07 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-13 12:19:54 +0100
commit3fbf280e349cfbac26fd6069f40c4d727ccd3c88 (patch)
treec253bc0e732bef6c24fd67571a1bc6d920bc767c /tests
parenttypo fix (diff)
downloadnvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar.gz
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar.bz2
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar.lz
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar.xz
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.tar.zst
nvim-treesitter-3fbf280e349cfbac26fd6069f40c4d727ccd3c88.zip
indents(php): don't use aligned_indent for php
Fixes #2497
Diffstat (limited to 'tests')
-rw-r--r--tests/indent/php/issue-2497.php14
-rw-r--r--tests/indent/php_spec.lua1
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/indent/php/issue-2497.php b/tests/indent/php/issue-2497.php
new file mode 100644
index 000000000..2da7d3a73
--- /dev/null
+++ b/tests/indent/php/issue-2497.php
@@ -0,0 +1,14 @@
+<?php
+
+use Illuminate\Support\Facades\Route;
+
+Route::get('/', function () {
+ return view('welcome');
+});
+
+Route::get(
+ '/',
+ 1,
+ aaaaaaaaaaaaaaaaaaaaaaaaa,
+ 2
+);
diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua
index 0620c5ea6..e2655b83f 100644
--- a/tests/indent/php_spec.lua
+++ b/tests/indent/php_spec.lua
@@ -20,5 +20,6 @@ describe("indent PHP:", function()
"example2.php",
{ on_line = 5, text = "indendation with `enter` in insert mode is not correct", indent = 4 }
)
+ run:new_line("issue-2497.php", { on_line = 5, text = "$a =", indent = 4 })
end)
end)