annotate runtime/ftplugin/nsis.vim @ 29664:6569c71c5ca5 v9.0.0172

patch 9.0.0172: trying to allocate zero bytes Commit: https://github.com/vim/vim/commit/1024690c015921b0a458172bc368133f63af1b89 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 8 17:08:05 2022 +0100 patch 9.0.0172: trying to allocate zero bytes Problem: Trying to allocate zero bytes. Solution: Do not allocate the proptype array when there are none. (closes #10867)
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Aug 2022 18:15:03 +0200
parents ebedba7a4898
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
1 " Vim ftplugin file
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
2 " Language: NSIS script
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
3 " Maintainer: Ken Takata
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
4 " URL: https://github.com/k-takata/vim-nsis
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
5 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
26050
ebedba7a4898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 13125
diff changeset
6 " Last Change: 2021-10-18
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
7
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
8 if exists("b:did_ftplugin")
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
9 finish
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
10 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
11
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
12 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
13 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
14
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
15 let b:did_ftplugin = 1
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
16
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
17 let b:undo_ftplugin = "setl com< cms< fo< def< inc<"
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
18
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
19 setlocal comments=s1:/*,mb:*,ex:*/,b:#,:; commentstring=;\ %s
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
20 setlocal formatoptions-=t formatoptions+=croql
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
21 setlocal define=^\\s*!define\\%(\\%(utc\\)\\=date\\|math\\)\\=
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
22 setlocal include=^\\s*!include\\%(/NONFATAL\\)\\=
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
23
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
24 if exists("loaded_matchit")
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
25 let b:match_ignorecase = 1
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
26 let b:match_words =
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
27 \ '\${\%(If\|IfNot\|Unless\)}:\${\%(Else\|ElseIf\|ElseIfNot\|ElseUnless\)}:\${\%(EndIf\|EndUnless\)},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
28 \ '\${Select}:\${EndSelect},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
29 \ '\${Switch}:\${EndSwitch},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
30 \ '\${\%(Do\|DoWhile\|DoUntil\)}:\${\%(Loop\|LoopWhile\|LoopUntil\)},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
31 \ '\${\%(For\|ForEach\)}:\${Next},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
32 \ '\<Function\>:\<FunctionEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
33 \ '\<Section\>:\<SectionEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
34 \ '\<SectionGroup\>:\<SectionGroupEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
35 \ '\<PageEx\>:\<PageExEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
36 \ '\${MementoSection}:\${MementoSectionEnd},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
37 \ '!if\%(\%(macro\)\?n\?def\)\?\>:!else\>:!endif\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
38 \ '!macro\>:!macroend\>'
26050
ebedba7a4898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 13125
diff changeset
39 let b:undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words"
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
40 endif
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
41
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
42 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
43 unlet s:cpo_save