codekingpro/portable-devtools
114k
1" Vim ftplugin file2" Language: NSIS script3" Maintainer: Ken Takata4" URL: https://github.com/k-takata/vim-nsis5" Previous Maintainer: Nikolai Weibull <now@bitwi.se>6" Last Change: 2021-10-187 8if exists("b:did_ftplugin")9 finish10endif11 12let s:cpo_save = &cpo13set cpo&vim14 15let b:did_ftplugin = 116 17let b:undo_ftplugin = "setl com< cms< fo< def< inc<"18 19setlocal comments=s1:/*,mb:*,ex:*/,b:#,:; commentstring=;\ %s20setlocal formatoptions-=t formatoptions+=croql21setlocal define=^\\s*!define\\%(\\%(utc\\)\\=date\\|math\\)\\=22setlocal include=^\\s*!include\\%(/NONFATAL\\)\\=23 24if exists("loaded_matchit")25 let b:match_ignorecase = 126 let b:match_words =27 \ '\${\%(If\|IfNot\|Unless\)}:\${\%(Else\|ElseIf\|ElseIfNot\|ElseUnless\)}:\${\%(EndIf\|EndUnless\)},' .28 \ '\${Select}:\${EndSelect},' .29 \ '\${Switch}:\${EndSwitch},' .30 \ '\${\%(Do\|DoWhile\|DoUntil\)}:\${\%(Loop\|LoopWhile\|LoopUntil\)},' .31 \ '\${\%(For\|ForEach\)}:\${Next},' .32 \ '\<Function\>:\<FunctionEnd\>,' .33 \ '\<Section\>:\<SectionEnd\>,' .34 \ '\<SectionGroup\>:\<SectionGroupEnd\>,' .35 \ '\<PageEx\>:\<PageExEnd\>,' .36 \ '\${MementoSection}:\${MementoSectionEnd},' .37 \ '!if\%(\%(macro\)\?n\?def\)\?\>:!else\>:!endif\>,' .38 \ '!macro\>:!macroend\>'39 let b:undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words"40endif41 42let &cpo = s:cpo_save43unlet s:cpo_save44 