Mercurial > vim
comparison runtime/syntax/stp.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: Stored Procedures (STP) | 2 " Language: Stored Procedures (STP) |
3 " Maintainer: Jeff Lanzarotta (jefflanzarotta@yahoo.com) | 3 " Maintainer: Jeff Lanzarotta (jefflanzarotta@yahoo.com) |
4 " URL: http://lanzarotta.tripod.com/vim/syntax/stp.vim.zip | 4 " URL: http://lanzarotta.tripod.com/vim/syntax/stp.vim.zip |
5 " Last Change: March 05, 2002 | 5 " Last Change: March 05, 2002 |
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 |
129 | 126 |
130 " Syntax Synchronizing. | 127 " Syntax Synchronizing. |
131 syn sync minlines=10 maxlines=100 | 128 syn sync minlines=10 maxlines=100 |
132 | 129 |
133 " Define the default highlighting. | 130 " Define the default highlighting. |
134 " For version 5.x and earlier, only when not done already. | 131 " Only when and item doesn't have highlighting yet. |
135 " For version 5.8 and later, only when and item doesn't have highlighting yet. | 132 command -nargs=+ HiLink hi def link <args> |
136 if version >= 508 || !exists("did_stp_syn_inits") | |
137 if version < 508 | |
138 let did_stp_syn_inits = 1 | |
139 command -nargs=+ HiLink hi link <args> | |
140 else | |
141 command -nargs=+ HiLink hi def link <args> | |
142 endif | |
143 | 133 |
144 HiLink stpConditional Conditional | 134 HiLink stpConditional Conditional |
145 HiLink stpComment Comment | 135 HiLink stpComment Comment |
146 HiLink stpKeyword Keyword | 136 HiLink stpKeyword Keyword |
147 HiLink stpNumber Number | 137 HiLink stpNumber Number |
148 HiLink stpOperator Operator | 138 HiLink stpOperator Operator |
149 HiLink stpSpecial Special | 139 HiLink stpSpecial Special |
150 HiLink stpStatement Statement | 140 HiLink stpStatement Statement |
151 HiLink stpString String | 141 HiLink stpString String |
152 HiLink stpStringError Error | 142 HiLink stpStringError Error |
153 HiLink stpType Type | 143 HiLink stpType Type |
154 HiLink stpTodo Todo | 144 HiLink stpTodo Todo |
155 HiLink stpFunction Function | 145 HiLink stpFunction Function |
156 HiLink stpGlobals Macro | 146 HiLink stpGlobals Macro |
157 HiLink stpParen Normal | 147 HiLink stpParen Normal |
158 HiLink stpParenError Error | 148 HiLink stpParenError Error |
159 HiLink stpSQLKeyword Function | 149 HiLink stpSQLKeyword Function |
160 HiLink stpRepeat Repeat | 150 HiLink stpRepeat Repeat |
161 | 151 |
162 delcommand HiLink | 152 delcommand HiLink |
163 endif | |
164 | 153 |
165 let b:current_syntax = "stp" | 154 let b:current_syntax = "stp" |
166 | 155 |
167 " vim ts=8 sw=2 | 156 " vim ts=8 sw=2 |