1" Vim ftplugin file
2" Language:             FrameScript
3" Previous Maintainer:  Nikolai Weibull <[email protected]>
4" Latest Revision:      2008-07-19
5
6if exists("b:did_ftplugin")
7  finish
8endif
9let b:did_ftplugin = 1
10
11let s:cpo_save = &cpo
12set cpo&vim
13
14let b:undo_ftplugin = "setl com< cms< fo< inc< | unlet! b:matchwords"
15
16setlocal comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\ %s\ */
17setlocal formatoptions-=t formatoptions+=croql
18setlocal include=^\\s*<#Include
19
20if exists("loaded_matchit")
21  let s:not_end = '\c\%(\<End\)\@<!'
22  let b:match_words =
23        \ s:not_end . '\<If\>:\c\<ElseIf\>:\c\<Else\>:\c\<EndIf\>,' .
24        \ s:not_end . '\<Loop\>:\c\<EndLoop\>' .
25        \ s:not_end . '\<Sub\>:\c\<EndSub\>'
26  unlet s:not_end
27endif
28
29let &cpo = s:cpo_save
30unlet s:cpo_save
31