Mercurial > vim
comparison runtime/syntax/sdl.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 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: SDL | 2 " Language: SDL |
3 " Maintainer: Michael Piefel <entwurf@piefel.de> | 3 " Maintainer: Michael Piefel <entwurf@piefel.de> |
4 " Last Change: 2 May 2001 | 4 " Last Change: 2 May 2001 |
5 | 5 |
6 " For version 5.x: Clear all syntax items | 6 " quit when a syntax file was already loaded |
7 " For version 6.x: Quit when a syntax file was already loaded | 7 if exists("b:current_syntax") |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | 8 finish |
12 endif | 9 endif |
13 | 10 |
14 if !exists("sdl_2000") | 11 if !exists("sdl_2000") |
15 syntax case ignore | 12 syntax case ignore |
127 syn keyword sdlType STRING OBJECT IDENTIFIER NULL | 124 syn keyword sdlType STRING OBJECT IDENTIFIER NULL |
128 | 125 |
129 syn sync ccomment sdlComment | 126 syn sync ccomment sdlComment |
130 | 127 |
131 " Define the default highlighting. | 128 " Define the default highlighting. |
132 " For version 5.7 and earlier: only when not done already | 129 " Only when an item doesn't have highlighting yet |
133 " For version 5.8 and later: only when an item doesn't have highlighting yet | 130 command -nargs=+ HiLink hi def link <args> |
134 if version >= 508 || !exists("did_sdl_syn_inits") | 131 command -nargs=+ Hi hi def <args> |
135 if version < 508 | |
136 let did_sdl_syn_inits = 1 | |
137 command -nargs=+ HiLink hi link <args> | |
138 command -nargs=+ Hi hi <args> | |
139 else | |
140 command -nargs=+ HiLink hi def link <args> | |
141 command -nargs=+ Hi hi def <args> | |
142 endif | |
143 | 132 |
144 HiLink sdlException Label | 133 HiLink sdlException Label |
145 HiLink sdlConditional sdlStatement | 134 HiLink sdlConditional sdlStatement |
146 HiLink sdlVirtual sdlStatement | 135 HiLink sdlVirtual sdlStatement |
147 HiLink sdlExported sdlFlag | 136 HiLink sdlExported sdlFlag |
148 HiLink sdlCommentError sdlError | 137 HiLink sdlCommentError sdlError |
149 HiLink sdlOperator Operator | 138 HiLink sdlOperator Operator |
150 HiLink sdlStructure sdlType | 139 HiLink sdlStructure sdlType |
151 Hi sdlStatement term=bold ctermfg=4 guifg=Blue | 140 Hi sdlStatement term=bold ctermfg=4 guifg=Blue |
152 Hi sdlFlag term=bold ctermfg=4 guifg=Blue gui=italic | 141 Hi sdlFlag term=bold ctermfg=4 guifg=Blue gui=italic |
153 Hi sdlNewState term=italic ctermfg=2 guifg=Magenta gui=underline | 142 Hi sdlNewState term=italic ctermfg=2 guifg=Magenta gui=underline |
154 Hi sdlInput term=bold guifg=Red | 143 Hi sdlInput term=bold guifg=Red |
155 HiLink sdlType Type | 144 HiLink sdlType Type |
156 HiLink sdlString String | 145 HiLink sdlString String |
157 HiLink sdlComment Comment | 146 HiLink sdlComment Comment |
158 HiLink sdlSpecial Special | 147 HiLink sdlSpecial Special |
159 HiLink sdlError Error | 148 HiLink sdlError Error |
160 | 149 |
161 delcommand HiLink | 150 delcommand HiLink |
162 delcommand Hi | 151 delcommand Hi |
163 endif | |
164 | 152 |
165 let b:current_syntax = "sdl" | 153 let b:current_syntax = "sdl" |
166 | 154 |
167 " vim: ts=8 | 155 " vim: ts=8 |