blob: 6bfb3d7618c0de4cc143757bfc13f99364518e69 [file] [log] [blame]
Bram Moolenaara40ceaf2006-01-13 22:35:40 +00001" Vim filetype plugin file
2" Language: matlab
3" Maintainer: Jake Wasserman <jwasserman at gmail dot com>
4" Last Changed: 2006 Jan 12
5
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00006if exists("b:did_ftplugin")
7 finish
Bram Moolenaara40ceaf2006-01-13 22:35:40 +00008endif
9let b:did_ftplugin = 1
10
11let s:save_cpo = &cpo
12set cpo-=C
13
14if exists("loaded_matchit")
15 let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!'
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000016 let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' .
Bram Moolenaara40ceaf2006-01-13 22:35:40 +000017 \ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' .
18 \ s:conditionalEnd
19endif
20
21setlocal suffixesadd=.m
22setlocal suffixes+=.asv
23
24let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
25 \ . "| unlet! b:match_words"
26
27let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010028unlet s:save_cpo