comparison runtime/syntax/csh.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 dff4e29c6905
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Oct 23, 2014 4 " Last Change: Oct 23, 2014
5 " Version: 11 5 " Version: 11
6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_CSH 6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_CSH
7 7
8 " For version 5.x: Clear all syntax items 8 " quit when a syntax file was already loaded
9 " For version 6.x: Quit when a syntax file was already loaded 9 if exists("b:current_syntax")
10 if version < 600
11 syntax clear
12 elseif exists("b:current_syntax")
13 finish 10 finish
14 endif 11 endif
15 12
16 " clusters: 13 " clusters:
17 syn cluster cshQuoteList contains=cshDblQuote,cshSnglQuote,cshBckQuote 14 syn cluster cshQuoteList contains=cshDblQuote,cshSnglQuote,cshBckQuote
98 95
99 " All other identifiers 96 " All other identifiers
100 "syn match cshIdentifier "\<[a-zA-Z._][a-zA-Z0-9._]*\>" 97 "syn match cshIdentifier "\<[a-zA-Z._][a-zA-Z0-9._]*\>"
101 98
102 " Shell Input Redirection (Here Documents) 99 " Shell Input Redirection (Here Documents)
103 if version < 600 100 syn region cshHereDoc matchgroup=cshRedir start="<<-\=\s*\**\z(\h\w*\)\**" matchgroup=cshRedir end="^\z1$"
104 syn region cshHereDoc matchgroup=cshRedir start="<<-\=\s*\**END[a-zA-Z_0-9]*\**" matchgroup=cshRedir end="^END[a-zA-Z_0-9]*$"
105 syn region cshHereDoc matchgroup=cshRedir start="<<-\=\s*\**EOF\**" matchgroup=cshRedir end="^EOF$"
106 else
107 syn region cshHereDoc matchgroup=cshRedir start="<<-\=\s*\**\z(\h\w*\)\**" matchgroup=cshRedir end="^\z1$"
108 endif
109 101
110 " Define the default highlighting. 102 " Define the default highlighting.
111 " For version 5.7 and earlier: only when not done already 103 " Only when an item doesn't have highlighting yet
112 " For version 5.8 and later: only when an item doesn't have highlighting yet 104 command -nargs=+ HiLink hi def link <args>
113 if version >= 508 || !exists("did_csh_syntax_inits")
114 if version < 508
115 let did_csh_syntax_inits = 1
116 command -nargs=+ HiLink hi link <args>
117 else
118 command -nargs=+ HiLink hi def link <args>
119 endif
120 105
121 HiLink cshArgv cshVariables 106 HiLink cshArgv cshVariables
122 HiLink cshBckQuote cshCommand 107 HiLink cshBckQuote cshCommand
123 HiLink cshDblQuote cshString 108 HiLink cshDblQuote cshString
124 HiLink cshExtVar cshVariables 109 HiLink cshExtVar cshVariables
125 HiLink cshHereDoc cshString 110 HiLink cshHereDoc cshString
126 HiLink cshNoEndlineBQ cshNoEndline 111 HiLink cshNoEndlineBQ cshNoEndline
127 HiLink cshNoEndlineDQ cshNoEndline 112 HiLink cshNoEndlineDQ cshNoEndline
128 HiLink cshNoEndlineSQ cshNoEndline 113 HiLink cshNoEndlineSQ cshNoEndline
129 HiLink cshQtyWord cshVariables 114 HiLink cshQtyWord cshVariables
130 HiLink cshRedir cshOperator 115 HiLink cshRedir cshOperator
131 HiLink cshSelector cshVariables 116 HiLink cshSelector cshVariables
132 HiLink cshSetStmt cshStatement 117 HiLink cshSetStmt cshStatement
133 HiLink cshSetVariables cshVariables 118 HiLink cshSetVariables cshVariables
134 HiLink cshSnglQuote cshString 119 HiLink cshSnglQuote cshString
135 HiLink cshSubst cshVariables 120 HiLink cshSubst cshVariables
136 121
137 HiLink cshCommand Statement 122 HiLink cshCommand Statement
138 HiLink cshComment Comment 123 HiLink cshComment Comment
139 HiLink cshConditional Conditional 124 HiLink cshConditional Conditional
140 HiLink cshIdentifier Error 125 HiLink cshIdentifier Error
141 HiLink cshModifier Special 126 HiLink cshModifier Special
142 HiLink cshNoEndline Error 127 HiLink cshNoEndline Error
143 HiLink cshNumber Number 128 HiLink cshNumber Number
144 HiLink cshOperator Operator 129 HiLink cshOperator Operator
145 HiLink cshRedir Statement 130 HiLink cshRedir Statement
146 HiLink cshRepeat Repeat 131 HiLink cshRepeat Repeat
147 HiLink cshShellVariables Special 132 HiLink cshShellVariables Special
148 HiLink cshSpecial Special 133 HiLink cshSpecial Special
149 HiLink cshStatement Statement 134 HiLink cshStatement Statement
150 HiLink cshString String 135 HiLink cshString String
151 HiLink cshSubstError Error 136 HiLink cshSubstError Error
152 HiLink cshTodo Todo 137 HiLink cshTodo Todo
153 HiLink cshVariables Type 138 HiLink cshVariables Type
154 139
155 delcommand HiLink 140 delcommand HiLink
156 endif
157 141
158 let b:current_syntax = "csh" 142 let b:current_syntax = "csh"
159 143
160 " vim: ts=18 144 " vim: ts=18