ishd.vim 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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
  5. if exists("b:did_ftplugin") | finish | endif
  6. let b:did_ftplugin = 1
  7. setlocal foldmethod=syntax
  8. " Using line continuation here.
  9. let s:cpo_save = &cpo
  10. set cpo-=C
  11. " matchit support
  12. if exists("loaded_matchit")
  13. let b:match_ignorecase=0
  14. let b:match_words=
  15. \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' .
  16. \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' .
  17. \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' .
  18. \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' .
  19. \ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' .
  20. \ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$'
  21. endif
  22. if has("gui_win32") && !exists("b:browsefilter")
  23. let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" .
  24. \ "All Files (*.*)\t*.*\n"
  25. endif
  26. let &cpo = s:cpo_save
  27. unlet s:cpo_save