This commit is contained in:
Adam Stankiewicz
2019-03-04 09:15:44 +01:00
parent c161994e96
commit ed677c34d5
45 changed files with 1575 additions and 705 deletions

View File

@@ -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