summaryrefslogtreecommitdiffstats
path: root/indent/blade.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2019-03-04 09:15:44 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2019-03-04 09:15:44 +0100
commited677c34d55a0e025b7008f29419498a3989cde2 (patch)
tree62efef78ed05b2b4e61efb21e40a6b337359eb8e /indent/blade.vim
parentc161994e9607399a7b365ab274592bfc4f100306 (diff)
downloadvim-polyglot-ed677c34d55a0e025b7008f29419498a3989cde2.tar.gz
vim-polyglot-ed677c34d55a0e025b7008f29419498a3989cde2.zip
Update
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