mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix php indent for short array declaration
This commit is contained in:
parent
07e5fcbaad
commit
84e23bd979
3 changed files with 7 additions and 0 deletions
5
tests/indent/php/issue-3591.php
Normal file
5
tests/indent/php/issue-3591.php
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
function test() {
|
||||
$array = [
|
||||
}
|
||||
|
|
@ -22,5 +22,6 @@ describe("indent PHP:", function()
|
|||
)
|
||||
run:new_line("issue-2497.php", { on_line = 5, text = "$a =", indent = 4 })
|
||||
run:new_line("unfinished-call.php", { on_line = 6, text = "$a =", indent = 0 })
|
||||
run:new_line("issue-3591.php", { on_line = 4, text = "$a =", indent = 8 })
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue