annotate runtime/ftplugin/matlab.vim @ 8261:a412b466bedc v7.4.1423

commit https://github.com/vim/vim/commit/4cafa6dc7f0728b018979aff0ca039908ecf2ae1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 26 11:52:39 2016 +0100 patch 7.4.1423 Problem: Channel test fails on MS-Windows. Solution: Do not give an error message when reading fails, assume the other end exited.
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Feb 2016 12:00:05 +0100
parents 11d78e58a487
children 03b854983b14
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>
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
4 " Last Changed: 2014 Dec 30
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
5
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
6 " Contributors:
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
7 " Charles Campbell
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
8
856
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
9 if exists("b:did_ftplugin")
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
10 finish
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
11 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
13
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
14 let s:save_cpo = &cpo
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
15 set cpo-=C
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
16
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
17 if exists("loaded_matchit")
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
18 let s:conditionalEnd = '\%(([^()]*\)\@!\<end\>\%([^()]*)\)\@!'
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
19 let b:match_words=
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
20 \ '\<\%(if\|switch\|for\|while\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\)\>:'.s:conditionalEnd.','.
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
21 \ '\<function\>:\<return\>:\<endfunction\>'
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
22 unlet s:conditionalEnd
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
23 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
24
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
25 setlocal suffixesadd=.m
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
26 setlocal suffixes+=.asv
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
27
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
28 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< "
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
29 \ . "| unlet! b:match_words"
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
30
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
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