annotate runtime/ftplugin/framescript.vim @ 8728:b1ca6aa215b7 v7.4.1653

commit https://github.com/vim/vim/commit/da64ab322ae35e473a24b211d22d05b1439aa05c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 25 18:35:01 2016 +0100 patch 7.4.1653 Problem: Users who loaded matchit.vim manually have to change their startup. (Gary Johnson) Solution: Add a file in the old location that loads the package.
author Christian Brabandt <cb@256bit.org>
date Fri, 25 Mar 2016 18:45:05 +0100
parents f4f8014d516e
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
1 " Vim ftplugin file
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
2 " Language: FrameScript
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
4 " Latest Revision: 2008-07-19
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
5
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
6 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
7 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
8
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
9 if exists("b:did_ftplugin")
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
10 finish
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
11 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
13
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
14 let b:undo_ftplugin = "setl com< cms< fo< inc< | unlet! b:matchwords"
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
15
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
16 setlocal comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\ %s\ */
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
17 setlocal formatoptions-=t formatoptions+=croql
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
18 setlocal include=^\\s*<#Include
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
19
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
20 if exists("loaded_matchit")
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
21 let s:not_end = '\c\%(\<End\)\@<!'
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
22 let b:match_words =
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
23 \ s:not_end . '\<If\>:\c\<ElseIf\>:\c\<Else\>:\c\<EndIf\>,' .
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
24 \ s:not_end . '\<Loop\>:\c\<EndLoop\>' .
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
25 \ s:not_end . '\<Sub\>:\c\<EndSub\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
26 unlet s:not_end
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
27 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
28
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
29 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
30 unlet s:cpo_save