From 1cec3899f5b757fc46b4e5a8fbeea764df58c9f0 Mon Sep 17 00:00:00 2001 From: przepompownia Date: Fri, 13 May 2022 22:14:06 +0200 Subject: indents(php): @auto on comment and ERROR Currently with ```vim setlocal autoindent setlocal smartindent ``` in `after/indent/php.vim` it allows correct indentation inside PHP docblocks. --- queries/php/indents.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'queries/php') diff --git a/queries/php/indents.scm b/queries/php/indents.scm index 2247f17ac..d9a356cba 100644 --- a/queries/php/indents.scm +++ b/queries/php/indents.scm @@ -16,6 +16,8 @@ [ (comment) -] @ignore +] @auto (compound_statement "}" @indent_end) + +(ERROR) @auto -- cgit v1.2.3-70-g09d2