Mercurial > vim
comparison runtime/syntax/cterm.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 |
---|---|
2 " Language: Century Term Command Script | 2 " Language: Century Term Command Script |
3 " Maintainer: Sean M. McKee <mckee@misslink.net> | 3 " Maintainer: Sean M. McKee <mckee@misslink.net> |
4 " Last Change: 2002 Apr 13 | 4 " Last Change: 2002 Apr 13 |
5 " Version Info: @(#)cterm.vim 1.7 97/12/15 09:23:14 | 5 " Version Info: @(#)cterm.vim 1.7 97/12/15 09:23:14 |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 syn case ignore | 12 syn case ignore |
16 | 13 |
140 syn region ctermString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=ctermSpecial,ctermVar,ctermSymbols | 137 syn region ctermString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=ctermSpecial,ctermVar,ctermSymbols |
141 syn match ctermCharacter "'[^\\]'" | 138 syn match ctermCharacter "'[^\\]'" |
142 syn match ctermSpecialCharacter "'\\.'" | 139 syn match ctermSpecialCharacter "'\\.'" |
143 | 140 |
144 " Define the default highlighting. | 141 " Define the default highlighting. |
145 " For version 5.7 and earlier: only when not done already | 142 " Only when an item doesn't have highlighting yet |
146 " For version 5.8 and later: only when an item doesn't have highlighting yet | 143 command -nargs=+ HiLink hi def link <args> |
147 if version >= 508 || !exists("did_cterm_syntax_inits") | |
148 if version < 508 | |
149 let did_cterm_syntax_inits = 1 | |
150 command -nargs=+ HiLink hi link <args> | |
151 else | |
152 command -nargs=+ HiLink hi def link <args> | |
153 endif | |
154 | 144 |
155 HiLink ctermStatement Statement | 145 HiLink ctermStatement Statement |
156 HiLink ctermFunction Statement | 146 HiLink ctermFunction Statement |
157 HiLink ctermStrFunction Statement | 147 HiLink ctermStrFunction Statement |
158 HiLink ctermIntFunction Statement | 148 HiLink ctermIntFunction Statement |
159 HiLink ctermLabel Statement | 149 HiLink ctermLabel Statement |
160 HiLink ctermConditional Statement | 150 HiLink ctermConditional Statement |
161 HiLink ctermRepeat Statement | 151 HiLink ctermRepeat Statement |
162 HiLink ctermLibFunc UserDefFunc | 152 HiLink ctermLibFunc UserDefFunc |
163 HiLink ctermType Type | 153 HiLink ctermType Type |
164 HiLink ctermFuncArg PreCondit | 154 HiLink ctermFuncArg PreCondit |
165 | 155 |
166 HiLink ctermPreVarRO PreCondit | 156 HiLink ctermPreVarRO PreCondit |
167 HiLink ctermPreVarRW PreConditBold | 157 HiLink ctermPreVarRW PreConditBold |
168 HiLink ctermVar Type | 158 HiLink ctermVar Type |
169 | 159 |
170 HiLink ctermComment Comment | 160 HiLink ctermComment Comment |
171 | 161 |
172 HiLink ctermCharacter SpecialChar | 162 HiLink ctermCharacter SpecialChar |
173 HiLink ctermSpecial Special | 163 HiLink ctermSpecial Special |
174 HiLink ctermSpecialCharacter SpecialChar | 164 HiLink ctermSpecialCharacter SpecialChar |
175 HiLink ctermSymbols Special | 165 HiLink ctermSymbols Special |
176 HiLink ctermString String | 166 HiLink ctermString String |
177 HiLink ctermTodo Todo | 167 HiLink ctermTodo Todo |
178 HiLink ctermOperator Statement | 168 HiLink ctermOperator Statement |
179 HiLink ctermNumber Number | 169 HiLink ctermNumber Number |
180 | 170 |
181 " redefine the colors | 171 " redefine the colors |
182 "hi PreConditBold term=bold ctermfg=1 cterm=bold guifg=Purple gui=bold | 172 "hi PreConditBold term=bold ctermfg=1 cterm=bold guifg=Purple gui=bold |
183 "hi Special term=bold ctermfg=6 guifg=SlateBlue gui=underline | 173 "hi Special term=bold ctermfg=6 guifg=SlateBlue gui=underline |
184 | 174 |
185 delcommand HiLink | 175 delcommand HiLink |
186 endif | |
187 | 176 |
188 let b:current_syntax = "cterm" | 177 let b:current_syntax = "cterm" |
189 | 178 |
190 " vim: ts=8 | 179 " vim: ts=8 |