blob: 5ff18b9601c401e694aa64c404d061928138cd2c [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: pascal
Bram Moolenaar5c736222010-01-06 20:54:52 +01003" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +02004" Last Changed: 11 Apr 2011
Bram Moolenaar5c736222010-01-06 20:54:52 +01005" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7if exists("b:did_ftplugin") | finish | endif
8let b:did_ftplugin = 1
9
10if exists("loaded_matchit")
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020011 let b:match_ignorecase = 1 " (pascal is case-insensitive)
12
13 let b:match_words = '\<\%(begin\|case\|record\|object\|try\)\>'
14 let b:match_words .= ':\<^\s*\%(except\|finally\)\>:\<end\>'
15 let b:match_words .= ',\<repeat\>:\<until\>'
16 let b:match_words .= ',\<if\>:\<else\>'
Bram Moolenaar071d4272004-06-13 20:20:40 +000017endif
18
19" Undo the stuff we changed.
20let b:undo_ftplugin = "unlet! b:match_words"