Mercurial > vim
comparison runtime/syntax/trasys.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 |
---|---|
6 " URL: http://www.naglenet.org/vim/syntax/trasys.vim | 6 " URL: http://www.naglenet.org/vim/syntax/trasys.vim |
7 " MAIN URL: http://www.naglenet.org/vim/ | 7 " MAIN URL: http://www.naglenet.org/vim/ |
8 | 8 |
9 | 9 |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 | 16 |
20 " Force free-form fortran format | 17 " Force free-form fortran format |
21 let fortran_free_source=1 | 18 let fortran_free_source=1 |
22 | 19 |
23 " Load FORTRAN syntax file | 20 " Load FORTRAN syntax file |
24 if version < 600 | 21 runtime! syntax/fortran.vim |
25 source <sfile>:p:h/fortran.vim | |
26 else | |
27 runtime! syntax/fortran.vim | |
28 endif | |
29 unlet b:current_syntax | 22 unlet b:current_syntax |
30 | 23 |
31 | 24 |
32 " Ignore case | 25 " Ignore case |
33 syn case ignore | 26 syn case ignore |
134 syn sync match trasysSync grouphere trasysComment "^HEADER DOCUMENTATION DATA" | 127 syn sync match trasysSync grouphere trasysComment "^HEADER DOCUMENTATION DATA" |
135 | 128 |
136 | 129 |
137 | 130 |
138 " Define the default highlighting | 131 " Define the default highlighting |
139 " For version 5.7 and earlier: only when not done already | 132 " Only when an item doesn't have highlighting yet |
140 " For version 5.8 and later: only when an item doesn't have highlighting yet | 133 command -nargs=+ HiLink hi def link <args> |
141 if version >= 508 || !exists("did_trasys_syntax_inits") | |
142 if version < 508 | |
143 let did_trasys_syntax_inits = 1 | |
144 command -nargs=+ HiLink hi link <args> | |
145 else | |
146 command -nargs=+ HiLink hi def link <args> | |
147 endif | |
148 | 134 |
149 HiLink trasysOptions Special | 135 HiLink trasysOptions Special |
150 HiLink trasysSurface Special | 136 HiLink trasysSurface Special |
151 HiLink trasysSurfaceType Constant | 137 HiLink trasysSurfaceType Constant |
152 HiLink trasysSurfaceArgs Constant | 138 HiLink trasysSurfaceArgs Constant |
153 HiLink trasysArgs Constant | 139 HiLink trasysArgs Constant |
154 HiLink trasysOperations Statement | 140 HiLink trasysOperations Statement |
155 HiLink trasysSubRoutine Statement | 141 HiLink trasysSubRoutine Statement |
156 HiLink trassyPrcsrSegm PreProc | 142 HiLink trassyPrcsrSegm PreProc |
157 HiLink trasysIdentifier Identifier | 143 HiLink trasysIdentifier Identifier |
158 HiLink trasysComment Comment | 144 HiLink trasysComment Comment |
159 HiLink trasysHeader Typedef | 145 HiLink trasysHeader Typedef |
160 HiLink trasysMacro Macro | 146 HiLink trasysMacro Macro |
161 HiLink trasysInteger Number | 147 HiLink trasysInteger Number |
162 HiLink trasysFloat Float | 148 HiLink trasysFloat Float |
163 HiLink trasysScientific Float | 149 HiLink trasysScientific Float |
164 | 150 |
165 HiLink trasysBlank SpecialChar | 151 HiLink trasysBlank SpecialChar |
166 | 152 |
167 HiLink trasysEndData Macro | 153 HiLink trasysEndData Macro |
168 | 154 |
169 HiLink trasysTodo Todo | 155 HiLink trasysTodo Todo |
170 | 156 |
171 delcommand HiLink | 157 delcommand HiLink |
172 endif | |
173 | 158 |
174 | 159 |
175 let b:current_syntax = "trasys" | 160 let b:current_syntax = "trasys" |
176 | 161 |
177 " vim: ts=8 sw=2 | 162 " vim: ts=8 sw=2 |