blob: 66802cad0d8cb06f739e14673892bf63135a7602 [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
Bram Moolenaare37d50a2008-08-06 17:06:04 +00006if exists("b:did_ftplugin")
7 finish
8endif
9let b:did_ftplugin = 1
10
Bram Moolenaare0e39172021-01-25 21:14:57 +010011let s:cpo_save = &cpo
12set cpo&vim
13
Bram Moolenaare37d50a2008-08-06 17:06:04 +000014let 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