blob: 205111c3c256d11edb6a8b9e08eab858abe02941 [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>
Bram Moolenaar8feef4f2015-01-07 16:57:10 +01004" Last Changed: 2014 Dec 30
5
6" Contributors:
7" Charles Campbell
Bram Moolenaara40ceaf2006-01-13 22:35:40 +00008
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00009if exists("b:did_ftplugin")
10 finish
Bram Moolenaara40ceaf2006-01-13 22:35:40 +000011endif
12let b:did_ftplugin = 1
13
14let s:save_cpo = &cpo
15set cpo-=C
16
17if exists("loaded_matchit")
Bram Moolenaar8feef4f2015-01-07 16:57:10 +010018 let s:conditionalEnd = '\%(([^()]*\)\@!\<end\>\%([^()]*)\)\@!'
19 let b:match_words=
20 \ '\<\%(if\|switch\|for\|while\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\)\>:'.s:conditionalEnd.','.
21 \ '\<function\>:\<return\>:\<endfunction\>'
22 unlet s:conditionalEnd
Bram Moolenaara40ceaf2006-01-13 22:35:40 +000023endif
24
25setlocal suffixesadd=.m
26setlocal suffixes+=.asv
27
28let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
29 \ . "| unlet! b:match_words"
30
31let &cpo = s:save_cpo
Bram Moolenaar84f72352012-03-11 15:57:40 +010032unlet s:save_cpo