Mercurial > vim
annotate runtime/ftplugin/lua.vim @ 11150:9f9409588102 v8.0.0462
patch 8.0.0462: failure of an MS-Windows test may go unnoticed
commit https://github.com/vim/vim/commit/b27523ff7ab3083c20c0f33415d890f978726c4f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 14:04:51 2017 +0100
patch 8.0.0462: failure of an MS-Windows test may go unnoticed
Problem: If an MS-Windows tests succeeds at first and then fails in a way
it does not produce a test.out file it looks like the test
succeeded.
Solution: Delete the previous output file.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 14:15:04 +0100 |
parents | 94601b379f38 |
children | 624439a39432 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file. |
2 " Language: Lua 4.0+ | |
3 " Maintainer: Max Ischenko <mfi@ukr.net> | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
4 " Last Change: 2012 Mar 07 |
7 | 5 |
6 " Only do this when not done yet for this buffer | |
7 if exists("b:did_ftplugin") | |
8 finish | |
9 endif | |
10 | |
11 " Don't load another plugin for this buffer | |
12 let b:did_ftplugin = 1 | |
13 | |
3224 | 14 let s:cpo_save = &cpo |
15 set cpo&vim | |
16 | |
7 | 17 " Set 'formatoptions' to break comment lines but not other lines, and insert |
18 " the comment leader when hitting <CR> or using "o". | |
19 setlocal fo-=t fo+=croql | |
20 | |
21 setlocal com=:-- | |
1621 | 22 setlocal cms=--%s |
7 | 23 setlocal suffixesadd=.lua |
24 | |
25 | |
26 " The following lines enable the macros/matchit.vim plugin for | |
27 " extended matching with the % key. | |
28 if exists("loaded_matchit") | |
29 | |
30 let b:match_ignorecase = 0 | |
31 let b:match_words = | |
32 \ '\<\%(do\|function\|if\)\>:' . | |
33 \ '\<\%(return\|else\|elseif\)\>:' . | |
34 \ '\<end\>,' . | |
35 \ '\<repeat\>:\<until\>' | |
36 | |
37 endif " exists("loaded_matchit") | |
3224 | 38 |
39 let &cpo = s:cpo_save | |
40 unlet s:cpo_save | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
41 |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
42 let b:undo_ftplugin = "setlocal fo< com< cms< suffixesadd<" |