blob: 48fe0ace7c2076fa4b6f2fcb849a10b739960f80 [file] [log] [blame]
Bram Moolenaare37d50a2008-08-06 17:06:04 +00001" Vim ftplugin file
Bram Moolenaar214641f2017-03-05 17:04:09 +01002" Language: FrameScript
3" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
4" Latest Revision: 2008-07-19
Bram Moolenaare37d50a2008-08-06 17:06:04 +00005
6let s:cpo_save = &cpo
7set cpo&vim
8
9if exists("b:did_ftplugin")
10 finish
11endif
12let b:did_ftplugin = 1
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