annotate runtime/ftplugin/lua.vim @ 26879:da89514c3b72 v8.2.3968

patch 8.2.3968: build failure Commit: https://github.com/vim/vim/commit/e70cec976026ce72d09b6589ebba4677581063ac Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:25:55 2022 +0000 patch 8.2.3968: build failure Problem: Build failure. Solution: Add missing changes.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30:06 +0100
parents 624439a39432
children fee9eccee266
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.
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
2 " Language: Lua
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
4 " Previous Maintainer: Max Ischenko <mfi@ukr.net>
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
5 " Last Change: 2021 Nov 15
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
15 let s:cpo_save = &cpo
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
16 set cpo&vim
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
17
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Set 'formatoptions' to break comment lines but not other lines, and insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " the comment leader when hitting <CR> or using "o".
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
20 setlocal formatoptions-=t formatoptions+=croql
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
22 setlocal comments=:--
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
23 setlocal commentstring=--%s
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 setlocal suffixesadd=.lua
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
26 let b:undo_ftplugin = "setlocal fo< com< cms< sua<"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
28 if exists("loaded_matchit") && !exists("b:match_words")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let b:match_ignorecase = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 let b:match_words =
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
31 \ '\<\%(do\|function\|if\)\>:' .
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
32 \ '\<\%(return\|else\|elseif\)\>:' .
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
33 \ '\<end\>,' .
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
34 \ '\<repeat\>:\<until\>,' .
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
35 \ '\%(--\)\=\[\(=*\)\[:]\1]'
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
36 let b:undo_ftplugin .= " | unlet! b:match_words b:match_ignorecase"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
37 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
39 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
40 let b:browsefilter = "Lua Source Files (*.lua)\t*.lua\n" .
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
41 \ "All Files (*.*)\t*.*\n"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
42 let b:undo_ftplugin .= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
43 endif
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
44
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
45 let &cpo = s:cpo_save
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
46 unlet s:cpo_save