pascal.vim 667 B

123456789101112131415161718192021
  1. " Vim filetype plugin file
  2. " Language: pascal
  3. " Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
  4. " Last Changed: 11 Apr 2011
  5. " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
  6. if exists("b:did_ftplugin") | finish | endif
  7. let b:did_ftplugin = 1
  8. if exists("loaded_matchit")
  9. let b:match_ignorecase = 1 " (pascal is case-insensitive)
  10. let b:match_words = '\<\%(begin\|case\|record\|object\|try\)\>'
  11. let b:match_words .= ':\<^\s*\%(except\|finally\)\>:\<end\>'
  12. let b:match_words .= ',\<repeat\>:\<until\>'
  13. let b:match_words .= ',\<if\>:\<else\>'
  14. endif
  15. " Undo the stuff we changed.
  16. let b:undo_ftplugin = "unlet! b:match_words"