summaryrefslogtreecommitdiffstats
path: root/ftplugin/blade.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/blade.vim')
-rw-r--r--ftplugin/blade.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/ftplugin/blade.vim b/ftplugin/blade.vim
index 3d3e7c50..68e80883 100644
--- a/ftplugin/blade.vim
+++ b/ftplugin/blade.vim
@@ -14,5 +14,23 @@ let b:did_ftplugin = 1
setlocal suffixesadd=.blade.php,.php
setlocal includeexpr=substitute(v:fname,'\\.','/','g')
setlocal path+=resources/views;
+setlocal include=\\w\\@<!@\\%(include\\\|extends\\)
+setlocal define=\\w\\@<!@\\%(yield\\\|stack\\)
+
+setlocal commentstring={{--%s--}}
+setlocal comments+=s:{{--,m:\ \ \ \ ,e:--}}
+
+if exists('loaded_matchit') && exists('b:match_words')
+ " Append to html matchit words
+ let b:match_words .= ',' .
+ \ '@\%(section\|if\|unless\|foreach\|forelse\|for\|while\|push\|can\|cannot\|hasSection\|php\|verbatim\)\>' .
+ \ ':' .
+ \ '@\%(else\|elseif\|empty\|break\|continue\|elsecan\|elsecannot\)\>' .
+ \ ':' .
+ \ '@\%(end\w\+\|stop\|show\|append\|overwrite\)' .
+ \ ',{:},\[:\],(:)'
+ let b:match_skip = 'synIDattr(synID(line("."), col("."), 0), "name") !=# "bladeKeyword"'
+ let b:match_ignorecase = 0
+endif
endif