annotate runtime/ftplugin/matlab.vim @ 1916:70a5e723eea2 v7.2.213

updated for version 7.2-213
author vimboss
date Wed, 24 Jun 2009 14:50:12 +0000
parents 8cd729851562
children 94601b379f38
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
2 " Language: matlab
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
3 " Maintainer: Jake Wasserman <jwasserman at gmail dot com>
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
4 " Last Changed: 2006 Jan 12
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
5
856
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
6 if exists("b:did_ftplugin")
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
7 finish
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
8 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
9 let b:did_ftplugin = 1
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
10
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
11 let s:save_cpo = &cpo
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
12 set cpo-=C
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
13
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
14 if exists("loaded_matchit")
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
15 let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!'
856
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
16 let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' .
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
17 \ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' .
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
18 \ s:conditionalEnd
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
19 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
20
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
21 setlocal suffixesadd=.m
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
22 setlocal suffixes+=.asv
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
23
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
24 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
25 \ . "| unlet! b:match_words"
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
26
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
27 let &cpo = s:save_cpo
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
28
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
29
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
30