comparison runtime/syntax/basic.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 91e53bcb7946
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
6 " First version based on Micro$soft QBASIC circa 1989, as documented in 6 " First version based on Micro$soft QBASIC circa 1989, as documented in
7 " 'Learn BASIC Now' by Halvorson&Rygmyr. Microsoft Press 1989. 7 " 'Learn BASIC Now' by Halvorson&Rygmyr. Microsoft Press 1989.
8 " This syntax file not a complete implementation yet. Send suggestions to the 8 " This syntax file not a complete implementation yet. Send suggestions to the
9 " maintainer. 9 " maintainer.
10 10
11 " For version 5.x: Clear all syntax items 11 " quit when a syntax file was already loaded
12 " For version 6.x: Quit when a syntax file was already loaded 12 if exists("b:current_syntax")
13 if version < 600
14 syntax clear
15 elseif exists("b:current_syntax")
16 finish 13 finish
17 endif 14 endif
18 15
19 let s:cpo_save = &cpo 16 let s:cpo_save = &cpo
20 set cpo&vim 17 set cpo&vim
141 "syn sync ccomment basicComment 138 "syn sync ccomment basicComment
142 " syn match basicMathsOperator "[<>+\*^/\\=-]" 139 " syn match basicMathsOperator "[<>+\*^/\\=-]"
143 syn match basicMathsOperator "-\|=\|[:<>+\*^/\\]\|AND\|OR" 140 syn match basicMathsOperator "-\|=\|[:<>+\*^/\\]\|AND\|OR"
144 141
145 " Define the default highlighting. 142 " Define the default highlighting.
146 " For version 5.7 and earlier: only when not done already 143 " Only when an item doesn't have highlighting yet
147 " For version 5.8 and later: only when an item doesn't have highlighting yet 144 command -nargs=+ HiLink hi def link <args>
148 if version >= 508 || !exists("did_basic_syntax_inits")
149 if version < 508
150 let did_basic_syntax_inits = 1
151 command -nargs=+ HiLink hi link <args>
152 else
153 command -nargs=+ HiLink hi def link <args>
154 endif
155 145
156 HiLink basicLabel Label 146 HiLink basicLabel Label
157 HiLink basicConditional Conditional 147 HiLink basicConditional Conditional
158 HiLink basicRepeat Repeat 148 HiLink basicRepeat Repeat
159 HiLink basicLineNumber Comment 149 HiLink basicLineNumber Comment
160 HiLink basicNumber Number 150 HiLink basicNumber Number
161 HiLink basicError Error 151 HiLink basicError Error
162 HiLink basicStatement Statement 152 HiLink basicStatement Statement
163 HiLink basicString String 153 HiLink basicString String
164 HiLink basicComment Comment 154 HiLink basicComment Comment
165 HiLink basicSpecial Special 155 HiLink basicSpecial Special
166 HiLink basicTodo Todo 156 HiLink basicTodo Todo
167 HiLink basicFunction Identifier 157 HiLink basicFunction Identifier
168 HiLink basicTypeSpecifier Type 158 HiLink basicTypeSpecifier Type
169 HiLink basicFilenumber basicTypeSpecifier 159 HiLink basicFilenumber basicTypeSpecifier
170 "hi basicMathsOperator term=bold cterm=bold gui=bold 160 "hi basicMathsOperator term=bold cterm=bold gui=bold
171 161
172 delcommand HiLink 162 delcommand HiLink
173 endif
174 163
175 let b:current_syntax = "basic" 164 let b:current_syntax = "basic"
176 165
177 let &cpo = s:cpo_save 166 let &cpo = s:cpo_save
178 unlet s:cpo_save 167 unlet s:cpo_save