comparison runtime/syntax/sinda.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/sinda.vim 6 " URL: http://www.naglenet.org/vim/syntax/sinda.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 17
30 27
31 " Force free-form fortran format 28 " Force free-form fortran format
32 let fortran_free_source=1 29 let fortran_free_source=1
33 30
34 " Load FORTRAN syntax file 31 " Load FORTRAN syntax file
35 if version < 600 32 runtime! syntax/fortran.vim
36 source <sfile>:p:h/fortran.vim
37 else
38 runtime! syntax/fortran.vim
39 endif
40 unlet b:current_syntax 33 unlet b:current_syntax
41 34
42 35
43 36
44 " Define keywords for SINDA 37 " Define keywords for SINDA
104 endif 97 endif
105 98
106 99
107 100
108 " Define the default highlighting 101 " Define the default highlighting
109 " For version 5.7 and earlier: only when not done already 102 " Only when an item doesn't have highlighting yet
110 " For version 5.8 and later: only when an item doesn't have highlighting yet 103 command -nargs=+ HiLink hi def link <args>
111 if version >= 508 || !exists("did_sinda_syntax_inits")
112 if version < 508
113 let did_sinda_syntax_inits = 1
114 command -nargs=+ HiLink hi link <args>
115 else
116 command -nargs=+ HiLink hi def link <args>
117 endif
118 104
119 HiLink sindaMacro Macro 105 HiLink sindaMacro Macro
120 HiLink sindaOptions Special 106 HiLink sindaOptions Special
121 HiLink sindaRoutine Type 107 HiLink sindaRoutine Type
122 HiLink sindaControl Special 108 HiLink sindaControl Special
123 HiLink sindaSubRoutine Function 109 HiLink sindaSubRoutine Function
124 HiLink sindaIdentifier Identifier 110 HiLink sindaIdentifier Identifier
125 111
126 HiLink sindaFortran PreProc 112 HiLink sindaFortran PreProc
127 HiLink sindaMotran PreProc 113 HiLink sindaMotran PreProc
128 114
129 HiLink sindaComment Comment 115 HiLink sindaComment Comment
130 HiLink sindaHeader Typedef 116 HiLink sindaHeader Typedef
131 HiLink sindaIncludeFile Type 117 HiLink sindaIncludeFile Type
132 HiLink sindaInteger Number 118 HiLink sindaInteger Number
133 HiLink sindaFloat Float 119 HiLink sindaFloat Float
134 HiLink sindaScientific Float 120 HiLink sindaScientific Float
135 121
136 HiLink sindaEndData Macro 122 HiLink sindaEndData Macro
137 123
138 HiLink sindaTodo Todo 124 HiLink sindaTodo Todo
139 125
140 delcommand HiLink 126 delcommand HiLink
141 endif
142 127
143 128
144 let b:current_syntax = "sinda" 129 let b:current_syntax = "sinda"
145 130
146 " vim: ts=8 sw=2 131 " vim: ts=8 sw=2