Mercurial > vim
comparison runtime/ftplugin/matlab.vim @ 856:8cd729851562 v7.0g
updated for version 7.0g
author | vimboss |
---|---|
date | Sun, 30 Apr 2006 18:54:39 +0000 |
parents | 732c7ae5743e |
children | 94601b379f38 |
comparison
equal
deleted
inserted
replaced
855:d2a4f08396fe | 856:8cd729851562 |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: matlab | 2 " Language: matlab |
3 " Maintainer: Jake Wasserman <jwasserman at gmail dot com> | 3 " Maintainer: Jake Wasserman <jwasserman at gmail dot com> |
4 " Last Changed: 2006 Jan 12 | 4 " Last Changed: 2006 Jan 12 |
5 | 5 |
6 if exists("b:did_ftplugin") | 6 if exists("b:did_ftplugin") |
7 finish | 7 finish |
8 endif | 8 endif |
9 let b:did_ftplugin = 1 | 9 let b:did_ftplugin = 1 |
10 | 10 |
11 let s:save_cpo = &cpo | 11 let s:save_cpo = &cpo |
12 set cpo-=C | 12 set cpo-=C |
13 | 13 |
14 if exists("loaded_matchit") | 14 if exists("loaded_matchit") |
15 let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!' | 15 let s:conditionalEnd = '\(([^()]*\)\@!\<end\>\([^()]*)\)\@!' |
16 let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' . | 16 let b:match_words = '\<if\>\|\<while\>\|\<for\>\|\<switch\>:' . |
17 \ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' . | 17 \ s:conditionalEnd . ',\<if\>:\<elseif\>:\<else\>:' . |
18 \ s:conditionalEnd | 18 \ s:conditionalEnd |
19 endif | 19 endif |
20 | 20 |
21 setlocal suffixesadd=.m | 21 setlocal suffixesadd=.m |