1 " Vim filetype plugin file
2 " Language: InstallShield (ft=ishd)
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
4 " Last Change: Sat, 24 May 2003 11:55:36 CEST
6 if exists("b:did_ftplugin") | finish | endif
9 setlocal foldmethod=syntax
14 if exists("loaded_matchit")
15 let b:match_ignorecase=0
17 \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' .
18 \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' .
19 \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' .
20 \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' .
21 \ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' .
22 \ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$'
25 if has("gui_win32") && !exists("b:browsefilter")
26 let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" .
27 \ "All Files (*.*)\t*.*\n"