aboutsummaryrefslogtreecommitdiffstats
path: root/queries/php_only
diff options
context:
space:
mode:
author再生花 <hoangtun0810@gmail.com>2024-07-09 10:12:29 +0900
committerGitHub <noreply@github.com>2024-07-09 10:12:29 +0900
commit53c79ddc28b0df3263d629f5e20c9283b05841ca (patch)
treee21c4ef3210554c9d703cdc61b6da047941c026c /queries/php_only
parentfix(ruby): highlight "&." as `@punctuation.delimiter` (#6887) (diff)
downloadnvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar.gz
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar.bz2
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar.lz
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar.xz
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.tar.zst
nvim-treesitter-53c79ddc28b0df3263d629f5e20c9283b05841ca.zip
fix(php): do not indent after class/enum decl
Diffstat (limited to 'queries/php_only')
-rw-r--r--queries/php_only/indents.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/queries/php_only/indents.scm b/queries/php_only/indents.scm
index 4a67a8b0b..fef026757 100644
--- a/queries/php_only/indents.scm
+++ b/queries/php_only/indents.scm
@@ -40,6 +40,12 @@
(compound_statement
"}" @indent.end)
+(declaration_list
+ "}" @indent.end)
+
+(enum_declaration_list
+ "}" @indent.end)
+
(return_statement
";" @indent.end)