annotate runtime/ftplugin/lua.vim @ 3426:1e7e44ac2894

Added tag v7-3-478 for changeset 754db4059212
author Bram Moolenaar <bram@vim.org>
date Fri, 23 Mar 2012 15:37:02 +0100
parents 94601b379f38
children 624439a39432
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Lua 4.0+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
14 let s:cpo_save = &cpo
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
15 set cpo&vim
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Set 'formatoptions' to break comment lines but not other lines, and insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 setlocal fo-=t fo+=croql
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 setlocal com=:--
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 7
diff changeset
22 setlocal cms=--%s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 setlocal suffixesadd=.lua
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " The following lines enable the macros/matchit.vim plugin for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " extended matching with the % key.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 if exists("loaded_matchit")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 let b:match_ignorecase = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 let b:match_words =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 \ '\<\%(do\|function\|if\)\>:' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 \ '\<\%(return\|else\|elseif\)\>:' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 \ '\<end\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 \ '\<repeat\>:\<until\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif " exists("loaded_matchit")
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
38
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
39 let &cpo = s:cpo_save
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
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<"