annotate runtime/ftplugin/lua.vim @ 30719:71137f73c94d v9.0.0694

patch 9.0.0694: no native sound support on Mac OS Commit: https://github.com/vim/vim/commit/4314e4f7da4db5d85f63cdf43b73be3689502c93 Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Sat Oct 8 13:50:05 2022 +0100 patch 9.0.0694: no native sound support on Mac OS Problem: No native sound support on Mac OS. Solution: Add sound support for Mac OS. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/11274)
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Oct 2022 15:00:05 +0200
parents fee9eccee266
children 3295247d97a5
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.
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
2 " Language: Lua
26148
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>
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
5 " Contributor: Dorai Sitaram <ds26@gte.com>
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
6 " Last Change: 2022 Sep 05
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
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 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
13 let s:cpo_save = &cpo
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
14 set cpo&vim
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
15
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
16 setlocal comments=:--
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
17 setlocal commentstring=--\ %s
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
18 setlocal formatoptions-=t formatoptions+=croql
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
20 let &l:define = '\<function\|\<local\%(\s\+function\)\='
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 setlocal suffixesadd=.lua
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
24 let b:undo_ftplugin = "setlocal cms< com< def< fo< sua<"
7
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 if exists("loaded_matchit") && !exists("b:match_words")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 let b:match_ignorecase = 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 let b:match_words =
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
29 \ '\<\%(do\|function\|if\)\>:' ..
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
30 \ '\<\%(return\|else\|elseif\)\>:' ..
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
31 \ '\<end\>,' ..
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
32 \ '\<repeat\>:\<until\>,' ..
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
33 \ '\%(--\)\=\[\(=*\)\[:]\1]'
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
34 let b:undo_ftplugin ..= " | unlet! b:match_words b:match_ignorecase"
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
35 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
37 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
38 let b:browsefilter = "Lua Source Files (*.lua)\t*.lua\n" ..
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
39 \ "All Files (*.*)\t*.*\n"
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
40 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 3410
diff changeset
41 endif
3224
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
42
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
43 let &cpo = s:cpo_save
8b8ef1fed009 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1621
diff changeset
44 unlet s:cpo_save
30202
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
45
fee9eccee266 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26148
diff changeset
46 " vim: nowrap sw=2 sts=2 ts=8 noet: