codekingpro/portable-devtools
115k
1" Vim filetype plugin file2" Language: InstallShield (ft=ishd)3" Maintainer: Doug Kearns <dougkearns@gmail.com>4" Previous Maintainer: Johannes Zellner <johannes@zellner.org>5" Last Change: 2025 Jun 186" 2025 Jun 18 by Vim Project: set comments and commentstring option (#17490)7 8if exists("b:did_ftplugin") | finish | endif9let b:did_ftplugin = 110 11" Using line continuation here.12let s:cpo_save = &cpo13set cpo-=C14 15setlocal foldmethod=syntax16setlocal commentstring=//\ %s17setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://18 19let b:undo_ftplugin = "setl fdm< com< cms"20 21" matchit support22if exists("loaded_matchit")23 let b:match_ignorecase = 024 let b:match_words =25 \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' .26 \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' .27 \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' .28 \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' .29 \ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' .30 \ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$'31 let b:undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words"32endif33 34if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")35 let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n"36 if has("win32")37 let b:browsefilter .= "All Files (*.*)\t*\n"38 else39 let b:browsefilter .= "All Files (*)\t*\n"40 endif41 let b:undo_ftplugin .= " | unlet! b:browsefilter"42endif43 44let &cpo = s:cpo_save45unlet s:cpo_save46 