From ed677c34d55a0e025b7008f29419498a3989cde2 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 4 Mar 2019 09:15:44 +0100 Subject: Update --- indent/blade.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indent/blade.vim') diff --git a/indent/blade.vim b/indent/blade.vim index e93d48c9..9fe95742 100644 --- a/indent/blade.vim +++ b/indent/blade.vim @@ -55,9 +55,9 @@ function! GetBladeIndent() let indent = indent(lnum) " 1. Check for special directives - " @section is a single-line directive if it has a second argument. + " @section and @slot are single-line if they have a second argument. " @php is a single-line directive if it is followed by parentheses. - if (line =~# '@section\%(.*@end\)\@!' && line !~# '@section\s*([^,]*)') + if (line =~# '@\%(section\|slot\)\%(.*@end\)\@!' && line !~# '@\%(section\|slot\)\s*([^,]*)') \ || line =~# '@php\s*(' return indent endif -- cgit v1.2.3