robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
255f313cf6
master
1" Vim filetype plugin file 2" Language: InstallShield (ft=ishd) 3" Maintainer: Doug Kearns <dougkearns@gmail.com> 4" Previous Maintainer: Johannes Zellner <johannes@zellner.org> 5" Last Change: 2025 Jun 18 6" 2025 Jun 18 by Vim Project: set comments and commentstring option (#17490) 7 8if exists ( "b:did_ftplugin" ) |finish |endif 9let b: did_ftplugin = 1 10 11" Using line continuation here. 12let s: cpo_save = & cpo 13set cpo -= C 14 15setlocal foldmethod = syntax 16setlocal commentstring = //\ %s 17setlocal comments = sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 18 19let b: undo_ftplugin = "setl fdm< com< cms" 20 21" matchit support 22if exists ( "loaded_matchit" ) 23let b: match_ignorecase = 0 24let 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*$' 31let b: undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words" 32endif 33 34if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 35let b: browsefilter = "InstallShield Files (*.rul)\t*.rul\n" 36if has ( "win32" ) 37let b: browsefilter .= "All Files (*.*)\t*\n" 38else 39let b: browsefilter .= "All Files (*)\t*\n" 40endif 41let b: undo_ftplugin .= " | unlet! b:browsefilter" 42endif 43 44let & cpo = s: cpo_save 45unlet s: cpo_save