annotate runtime/ftplugin/matlab.vim @ 32600:d588202c7c37

Added tag v9.0.1631 for changeset f35ea6c38a20f08ed44885be71577f9f8ab3d08e
author Bram Moolenaar <Bram@vim.org>
date Wed, 14 Jun 2023 17:45:05 +0200
parents 11b656e74444
children
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>
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
4 " Update By: Gabriel Dupras
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
5 " Last Change: 2021 Aug 30
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
6
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
7 " Contributors:
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
8 " Charles Campbell
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
9
856
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
10 if exists("b:did_ftplugin")
8cd729851562 updated for version 7.0g
vimboss
parents: 626
diff changeset
11 finish
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
12 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
13 let b:did_ftplugin = 1
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
14
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
15 let s:save_cpo = &cpo
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
16 set cpo-=C
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
17
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
18 if exists("loaded_matchit")
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
19 let s:conditionalEnd = '\%(\%(^\|;\)\s*\)\@<=end\>'
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
20 let b:match_words=
25773
11b656e74444 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
21 \ '\<\%(if\|switch\|for\|while\|try\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\|catch\)\>:' . s:conditionalEnd . ',' .
6476
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
22 \ '\<function\>:\<return\>:\<endfunction\>'
11d78e58a487 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3410
diff changeset
23 unlet s:conditionalEnd
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
24 endif
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
25
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
26 setlocal suffixesadd=.m
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
27 setlocal suffixes+=.asv
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 6476
diff changeset
28 setlocal commentstring=%\ %s
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
29
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 6476
diff changeset
30 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< "
626
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
31 \ . "| unlet! b:match_words"
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
32
732c7ae5743e updated for version 7.0180
vimboss
parents:
diff changeset
33 let &cpo = s:save_cpo
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 856
diff changeset
34 unlet s:save_cpo