summaryrefslogtreecommitdiffstats
path: root/indent/blade.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/blade.vim')
-rw-r--r--indent/blade.vim4
1 files changed, 2 insertions, 2 deletions
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