codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: matlab3" Maintainer: Jake Wasserman <jwasserman at gmail dot com>4" Update By: Gabriel Dupras5" Last Change: 2021 Aug 306 7" Contributors:8" Charles Campbell9 10if exists("b:did_ftplugin")11 finish12endif13let b:did_ftplugin = 114 15let s:save_cpo = &cpo16set cpo-=C17 18if exists("loaded_matchit")19 let s:conditionalEnd = '\%(\%(^\|;\)\s*\)\@<=end\>'20 let b:match_words=21 \ '\<\%(if\|switch\|for\|while\|try\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\|catch\)\>:' . s:conditionalEnd . ',' .22 \ '\<function\>:\<return\>:\<endfunction\>'23 unlet s:conditionalEnd24endif25 26setlocal suffixesadd=.m27setlocal suffixes+=.asv28setlocal commentstring=%\ %s29 30let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< "31 \ . "| unlet! b:match_words"32 33let &cpo = s:save_cpo34unlet s:save_cpo35 