Mercurial > vim
comparison runtime/ftplugin/matlab.vim @ 25773:11b656e74444
Update runtime files
Commit: https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 9 21:55:11 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Sep 2021 22:00:10 +0200 |
parents | 03b854983b14 |
children |
comparison
equal
deleted
inserted
replaced
25772:55753c17b73d | 25773:11b656e74444 |
---|---|
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 Change: 2019 Sep 27 | 4 " Update By: Gabriel Dupras |
5 " Last Change: 2021 Aug 30 | |
5 | 6 |
6 " Contributors: | 7 " Contributors: |
7 " Charles Campbell | 8 " Charles Campbell |
8 | 9 |
9 if exists("b:did_ftplugin") | 10 if exists("b:did_ftplugin") |
13 | 14 |
14 let s:save_cpo = &cpo | 15 let s:save_cpo = &cpo |
15 set cpo-=C | 16 set cpo-=C |
16 | 17 |
17 if exists("loaded_matchit") | 18 if exists("loaded_matchit") |
18 let s:conditionalEnd = '\%(([^()]*\)\@!\<end\>\%([^()]*)\)\@!' | 19 let s:conditionalEnd = '\%(\%(^\|;\)\s*\)\@<=end\>' |
19 let b:match_words= | 20 let b:match_words= |
20 \ '\<\%(if\|switch\|for\|while\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\)\>:'.s:conditionalEnd.','. | 21 \ '\<\%(if\|switch\|for\|while\|try\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\|catch\)\>:' . s:conditionalEnd . ',' . |
21 \ '\<function\>:\<return\>:\<endfunction\>' | 22 \ '\<function\>:\<return\>:\<endfunction\>' |
22 unlet s:conditionalEnd | 23 unlet s:conditionalEnd |
23 endif | 24 endif |
24 | 25 |
25 setlocal suffixesadd=.m | 26 setlocal suffixesadd=.m |