Mercurial > vim
annotate runtime/ftplugin/matlab.vim @ 25953:d7e1cf30728c v8.2.3510
patch 8.2.3510: changes are only detected with one second accuracy
Commit: https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767
Author: Leah Neukirchen <leah@vuxu.org>
Date: Thu Oct 14 21:27:55 2021 +0100
patch 8.2.3510: changes are only detected with one second accuracy
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873, closes #8875)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Oct 2021 22:30:04 +0200 |
parents | 11b656e74444 |
children |
rev | line source |
---|---|
626 | 1 " Vim filetype plugin file |
2 " Language: matlab | |
3 " Maintainer: Jake Wasserman <jwasserman at gmail dot com> | |
25773 | 4 " Update By: Gabriel Dupras |
5 " Last Change: 2021 Aug 30 | |
6476 | 6 |
7 " Contributors: | |
8 " Charles Campbell | |
626 | 9 |
856 | 10 if exists("b:did_ftplugin") |
11 finish | |
626 | 12 endif |
13 let b:did_ftplugin = 1 | |
14 | |
15 let s:save_cpo = &cpo | |
16 set cpo-=C | |
17 | |
18 if exists("loaded_matchit") | |
25773 | 19 let s:conditionalEnd = '\%(\%(^\|;\)\s*\)\@<=end\>' |
6476 | 20 let b:match_words= |
25773 | 21 \ '\<\%(if\|switch\|for\|while\|try\)\>:\<\%(elseif\|case\|break\|continue\|else\|otherwise\|catch\)\>:' . s:conditionalEnd . ',' . |
6476 | 22 \ '\<function\>:\<return\>:\<endfunction\>' |
23 unlet s:conditionalEnd | |
626 | 24 endif |
25 | |
26 setlocal suffixesadd=.m | |
27 setlocal suffixes+=.asv | |
18186 | 28 setlocal commentstring=%\ %s |
626 | 29 |
18186 | 30 let b:undo_ftplugin = "setlocal suffixesadd< suffixes< commentstring< " |
626 | 31 \ . "| unlet! b:match_words" |
32 | |
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 |