1" Vim filetype plugin file 2" Language: matlab 3" Maintainer: Jake Wasserman <jwasserman at gmail dot com> 4" Last Change: 2019 Sep 27 5 6" Contributors: 7" Charles Campbell 8 9if exists("b:did_ftplugin") 10 finish 11endif 12let b:did_ftplugin = 1 13 14let s:save_cpo = &cpo 15set cpo-=C 16 17if exists("loaded_matchit") 18 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 23endif 24 25setlocal suffixesadd=.m 26setlocal suffixes+=.asv 27setlocal commentstring=%\ %s 28 29let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< " 30 \ . "| unlet! b:match_words" 31 32let &cpo = s:save_cpo 33unlet s:save_cpo 34