annotate runtime/ftplugin/framescript.vim @ 30590:d900f0561eee v9.0.0630

patch 9.0.0630: in Vim9 script a numbered function cannot be called Commit: https://github.com/vim/vim/commit/cfb4d4f312e740c2fbb70c29c47cf74a76f8b605 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 30 19:19:04 2022 +0100 patch 9.0.0630: in Vim9 script a numbered function cannot be called Problem: In Vim9 script a numbered function cannot be called. Solution: Do not require "g:" before a numbered function name. (closes #11254)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Sep 2022 20:30:04 +0200
parents 34b4eb3a8458
children
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
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
2 " Language: FrameScript
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
4 " Latest Revision: 2008-07-19
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
5
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
6 if exists("b:did_ftplugin")
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
7 finish
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
8 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
9 let b:did_ftplugin = 1
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
10
23737
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
11 let s:cpo_save = &cpo
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
12 set cpo&vim
34b4eb3a8458 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
13
1698
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