aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-01-24 20:39:18 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-01-24 22:33:41 +0100
commitae4c982f94b3b780041b16d6b5df247a67102d92 (patch)
tree953bd1229ae9507243d29d87dc8cf6f9a30aa9e6 /queries/php
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar.gz
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar.bz2
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar.lz
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar.xz
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.tar.zst
nvim-treesitter-ae4c982f94b3b780041b16d6b5df247a67102d92.zip
indents(php): align with C indentation
Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2357
Diffstat (limited to 'queries/php')
-rw-r--r--queries/php/indents.scm5
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/php/indents.scm b/queries/php/indents.scm
index 27cd7ed08..5c2a2924f 100644
--- a/queries/php/indents.scm
+++ b/queries/php/indents.scm
@@ -10,14 +10,13 @@
] @indent
[
- "("
")"
- "{"
"}"
- "["
"]"
] @branch
[
(comment)
] @ignore
+
+(compound_statement "}" @indent_end)