annotate runtime/ftplugin/framescript.vim @ 13276:6958e700a458 v8.0.1512

patch 8.0.1512: warning for possibly using NULL pointer commit https://github.com/vim/vim/commit/e4db7aedab65abadcc84c78e7a10ec7bb62f11cf Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 13 13:12:11 2018 +0100 patch 8.0.1512: warning for possibly using NULL pointer Problem: Warning for possibly using NULL pointer. (Coverity) Solution: Skip using the pointer if it's NULL.
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Feb 2018 13:15:06 +0100
parents 1218c5353e2b
children 34b4eb3a8458
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 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