Merge branch 'vim' into feat/code-check
[vim_extended.git] / runtime / ftplugin / matlab.vim
blob1800dc8a6496d4a49c4bcfbc0731247e3f7face0
1 " Vim filetype plugin file
2 " Language:     matlab
3 " Maintainer:   Jake Wasserman <jwasserman at gmail dot com>
4 " Last Changed: 2006 Jan 12
6 if exists("b:did_ftplugin")
7         finish
8 endif
9 let b:did_ftplugin = 1
11 let s:save_cpo = &cpo
12 set cpo-=C
14 if exists("loaded_matchit")
15         let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!'
16         let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' .
17                 \ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' .
18                 \ s:conditionalEnd
19 endif
21 setlocal suffixesadd=.m
22 setlocal suffixes+=.asv
24 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
25         \ . "| unlet! b:match_words"
27 let &cpo = s:save_cpo