1 " Vim filetype plugin file
2 " Language: MuPAD source files
3 " Maintainer: Dave Silvia <dsilvia@mchsi.com>
7 if exists("b:did_ftplugin") | finish | endif
10 " Change the :browse e filter to primarily show MuPAD source files.
13 \ "MuPAD source (*.mu)\t*.mu\n" .
14 \ "All Files (*.*)\t*.*\n"
17 " matchit.vim not loaded -- don't do anyting below
18 if !exists("loaded_matchit")
19 " echomsg "matchit.vim not loaded -- finishing"
23 " source the AppendMatchGroup function file
24 runtime ftplugin/AppendMatchGroup.vim
26 " fill b:match_words for MuPAD
27 call AppendMatchGroup('domain,end_domain')
28 call AppendMatchGroup('proc,begin,end_proc')
29 call AppendMatchGroup('if,then,elif,else,end_if')
30 call AppendMatchGroup('\%(for\|while\|repeat\|case\),of,do,break,next,until,\%(end_for\|end_while\|end_repeat\|end_case\)')