Mercurial > vim
comparison runtime/syntax/ampl.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 |
---|---|
1 " Language: ampl (A Mathematical Programming Language) | 1 " Language: ampl (A Mathematical Programming Language) |
2 " Maintainer: Krief David <david.krief@etu.enseeiht.fr> or <david_krief@hotmail.com> | 2 " Maintainer: Krief David <david.krief@etu.enseeiht.fr> or <david_krief@hotmail.com> |
3 " Last Change: 2003 May 11 | 3 " Last Change: 2003 May 11 |
4 | 4 |
5 | 5 |
6 if version < 600 | 6 " quit when a syntax file was already loaded |
7 syntax clear | 7 if exists("b:current_syntax") |
8 elseif exists("b:current_syntax") | |
9 finish | 8 finish |
10 endif | 9 endif |
11 | 10 |
12 | 11 |
13 | 12 |
113 | 112 |
114 | 113 |
115 | 114 |
116 | 115 |
117 | 116 |
118 if version >= 508 || !exists("did_ampl_syntax_inits") | 117 command -nargs=+ HiLink hi def link <args> |
119 if version < 508 | |
120 let did_ampl_syntax_inits = 1 | |
121 command -nargs=+ HiLink hi link <args> | |
122 else | |
123 command -nargs=+ HiLink hi def link <args> | |
124 endif | |
125 | 118 |
126 " The default methods for highlighting. Can be overridden later. | 119 " The default methods for highlighting. Can be overridden later. |
127 HiLink amplEntityKeyword Keyword | 120 HiLink amplEntityKeyword Keyword |
128 HiLink amplType Type | 121 HiLink amplType Type |
129 HiLink amplStatement Statement | 122 HiLink amplStatement Statement |
130 HiLink amplOperators Operator | 123 HiLink amplOperators Operator |
131 HiLink amplBasicOperators Operator | 124 HiLink amplBasicOperators Operator |
132 HiLink amplConditional Conditional | 125 HiLink amplConditional Conditional |
133 HiLink amplRepeat Repeat | 126 HiLink amplRepeat Repeat |
134 HiLink amplStrings String | 127 HiLink amplStrings String |
135 HiLink amplNumerics Number | 128 HiLink amplNumerics Number |
136 HiLink amplSetFunction Function | 129 HiLink amplSetFunction Function |
137 HiLink amplBuiltInFunction Function | 130 HiLink amplBuiltInFunction Function |
138 HiLink amplRandomGenerator Function | 131 HiLink amplRandomGenerator Function |
139 HiLink amplComment Comment | 132 HiLink amplComment Comment |
140 HiLink amplDotSuffix Special | 133 HiLink amplDotSuffix Special |
141 HiLink amplPiecewise Special | 134 HiLink amplPiecewise Special |
142 | 135 |
143 delcommand HiLink | 136 delcommand HiLink |
144 endif | |
145 | 137 |
146 let b:current_syntax = "ampl" | 138 let b:current_syntax = "ampl" |
147 | 139 |
148 " vim: ts=8 | 140 " vim: ts=8 |
149 | 141 |