Mercurial > vim
annotate runtime/ftplugin/matlab.vim @ 7186:41885de3d577 v7.4.903
commit https://github.com/vim/vim/commit/7314efd87d8c4095229bdc2867a553c36c064918
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 31 15:32:52 2015 +0100
patch 7.4.903
Problem: MS-Windows: When 'encoding' differs from the current code page,
expandinig wildcards may cause illegal memory access.
Solution: Allocate a longer buffer. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 31 Oct 2015 15:45:04 +0100 |
parents | 11d78e58a487 |
children | 03b854983b14 |
rev | line source |
---|---|
626 | 1 " Vim filetype plugin file |
2 " Language: matlab | |
3 " Maintainer: Jake Wasserman <jwasserman at gmail dot com> | |
6476 | 4 " Last Changed: 2014 Dec 30 |
5 | |
6 " Contributors: | |
7 " Charles Campbell | |
626 | 8 |
856 | 9 if exists("b:did_ftplugin") |
10 finish | |
626 | 11 endif |
12 let b:did_ftplugin = 1 | |
13 | |
14 let s:save_cpo = &cpo | |
15 set cpo-=C | |
16 | |
17 if exists("loaded_matchit") | |
6476 | 18 let s:conditionalEnd = '\%(([^()]*\)\@!\<end\>\%([^()]*)\)\@!' |
19 let b:match_words= | |
20 \ '\<\%(if\|switch\|for\|while\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\)\>:'.s:conditionalEnd.','. | |
21 \ '\<function\>:\<return\>:\<endfunction\>' | |
22 unlet s:conditionalEnd | |
626 | 23 endif |
24 | |
25 setlocal suffixesadd=.m | |
26 setlocal suffixes+=.asv | |
27 | |
28 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< " | |
29 \ . "| unlet! b:match_words" | |
30 | |
31 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
856
diff
changeset
|
32 unlet s:save_cpo |