diff options
Diffstat (limited to 'syntax/jst.vim')
-rw-r--r-- | syntax/jst.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/syntax/jst.vim b/syntax/jst.vim index 25abe238..ea95878b 100644 --- a/syntax/jst.vim +++ b/syntax/jst.vim @@ -24,6 +24,8 @@ elseif !exists("b:jst_subtype") && main_syntax == 'jst' let b:jst_subtype = 'haml' elseif b:jst_subtype == 'ejs' let b:jst_subtype = 'html' + elseif b:jst_subtype == 'ect' + let b:jst_subtype = 'html' elseif b:jst_subtype == 'rb' let b:jst_subtype = 'ruby' elseif b:jst_subtype == 'yml' @@ -70,4 +72,14 @@ if main_syntax == 'jst' unlet main_syntax endif +set commentstring=<!--%s--> + +if exists("loaded_matchit") + let b:match_ignorecase = 1 + let b:match_words = '<:>,' . + \ '<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,' . + \ '<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,' . + \ '<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>' +endif + " vim: nowrap sw=2 sts=2 ts=8: |