comparison runtime/syntax/sqlforms.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
5 " Prev Change: 19980710 5 " Prev Change: 19980710
6 " URL: http://www.halostatue.ca/vim/syntax/proc.vim 6 " URL: http://www.halostatue.ca/vim/syntax/proc.vim
7 " 7 "
8 " TODO Find a new maintainer who knows SQL*Forms. 8 " TODO Find a new maintainer who knows SQL*Forms.
9 9
10 " For version 5.x, clear all syntax items. 10 " quit when a syntax file was already loaded
11 " For version 6.x, quit when a syntax file was already loaded. 11 if exists("b:current_syntax")
12 if version < 600
13 syntax clear
14 elseif exists("b:current_syntax")
15 finish 12 finish
16 endif 13 endif
17 14
18 syntax case ignore 15 syntax case ignore
19 16
20 if version >= 600 17 setlocal iskeyword=a-z,A-Z,48-57,_,.,-,>
21 setlocal iskeyword=a-z,A-Z,48-57,_,.,-,>
22 else
23 set iskeyword=a-z,A-Z,48-57,_,.,-,>
24 endif
25 18
26 19
27 " The SQL reserved words, defined as keywords. 20 " The SQL reserved words, defined as keywords.
28 syntax match sqlTriggers /on-.*$/ 21 syntax match sqlTriggers /on-.*$/
29 syntax match sqlTriggers /key-.*$/ 22 syntax match sqlTriggers /key-.*$/
136 " Numbers: 129 " Numbers:
137 syntax match sqlNumber "-\=\<[0-9]*\.\=[0-9_]\>" 130 syntax match sqlNumber "-\=\<[0-9]*\.\=[0-9_]\>"
138 131
139 syntax sync ccomment sqlComment 132 syntax sync ccomment sqlComment
140 133
141 if version >= 508 || !exists("did_sqlforms_syn_inits") 134 command -nargs=+ HiLink hi def link <args>
142 if version < 508
143 let did_sqlforms_syn_inits = 1
144 command -nargs=+ HiLink hi link <args>
145 else
146 command -nargs=+ HiLink hi def link <args>
147 endif
148 135
149 HiLink sqlComment Comment 136 HiLink sqlComment Comment
150 HiLink sqlKeyword Statement 137 HiLink sqlKeyword Statement
151 HiLink sqlNumber Number 138 HiLink sqlNumber Number
152 HiLink sqlOperator Statement 139 HiLink sqlOperator Statement
153 HiLink sqlProcedure Statement 140 HiLink sqlProcedure Statement
154 HiLink sqlFunction Statement 141 HiLink sqlFunction Statement
155 HiLink sqlSystem Identifier 142 HiLink sqlSystem Identifier
156 HiLink sqlSpecial Special 143 HiLink sqlSpecial Special
157 HiLink sqlStatement Statement 144 HiLink sqlStatement Statement
158 HiLink sqlString String 145 HiLink sqlString String
159 HiLink sqlType Type 146 HiLink sqlType Type
160 HiLink sqlCodes Identifier 147 HiLink sqlCodes Identifier
161 HiLink sqlTriggers PreProc 148 HiLink sqlTriggers PreProc
162 149
163 delcommand HiLink 150 delcommand HiLink
164 endif
165 151
166 let b:current_syntax = "sqlforms" 152 let b:current_syntax = "sqlforms"
167 153
168 " vim: ts=8 sw=4 154 " vim: ts=8 sw=4