annotate runtime/ftplugin/mupad.vim @ 924:ba9375e24d49 v7.0.050

updated for version 7.0-050
author vimboss
date Tue, 08 Aug 2006 19:34:19 +0000
parents 289b19a6f2ed
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
391
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
1 " Vim filetype plugin file
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
2 " Language: MuPAD source files
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
3 " Maintainer: Dave Silvia <dsilvia@mchsi.com>
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
4 " Filenames: *.mu
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
5 " Date: 6/30/2004
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
6
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
7 if exists("b:did_ftplugin") | finish | endif
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
8 let b:did_ftplugin = 1
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
9
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
10 " Change the :browse e filter to primarily show MuPAD source files.
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
11 if has("gui_win32")
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
12 let b:browsefilter=
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
13 \ "MuPAD source (*.mu)\t*.mu\n" .
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
14 \ "All Files (*.*)\t*.*\n"
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
15 endif
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
16
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
17 " matchit.vim not loaded -- don't do anyting below
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
18 if !exists("loaded_matchit")
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
19 " echomsg "matchit.vim not loaded -- finishing"
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
20 finish
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
21 endif
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
22
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
23 " source the AppendMatchGroup function file
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
24 runtime ftplugin/AppendMatchGroup.vim
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
25
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
26 " fill b:match_words for MuPAD
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
27 call AppendMatchGroup('domain,end_domain')
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
28 call AppendMatchGroup('proc,begin,end_proc')
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
29 call AppendMatchGroup('if,then,elif,else,end_if')
289b19a6f2ed updated for version 7.0103
vimboss
parents: 12
diff changeset
30 call AppendMatchGroup('\%(for\|while\|repeat\|case\),of,do,break,next,until,\%(end_for\|end_while\|end_repeat\|end_case\)')