comparison runtime/syntax/sl.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 " Vim syntax file 1 " Vim syntax file
2 " Language: Renderman shader language 2 " Language: Renderman shader language
3 " Maintainer: Dan Piponi <dan@tanelorn.demon.co.uk> 3 " Maintainer: Dan Piponi <dan@tanelorn.demon.co.uk>
4 " Last Change: 2001 May 09 4 " Last Change: 2001 May 09
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 " A bunch of useful Renderman keywords including special 11 " A bunch of useful Renderman keywords including special
15 " RenderMan control structures 12 " RenderMan control structures
73 syn keyword slVariable dtime dPdtime 70 syn keyword slVariable dtime dPdtime
74 71
75 syn sync ccomment slComment minlines=10 72 syn sync ccomment slComment minlines=10
76 73
77 " Define the default highlighting. 74 " Define the default highlighting.
78 " For version 5.7 and earlier: only when not done already 75 " Only when an item doesn't have highlighting yet
79 " For version 5.8 and later: only when an item doesn't have highlighting yet 76 command -nargs=+ HiLink hi def link <args>
80 if version >= 508 || !exists("did_sl_syntax_inits")
81 if version < 508
82 let did_sl_syntax_inits = 1
83 command -nargs=+ HiLink hi link <args>
84 else
85 command -nargs=+ HiLink hi def link <args>
86 endif
87 77
88 HiLink slLabel Label 78 HiLink slLabel Label
89 HiLink slUserLabel Label 79 HiLink slUserLabel Label
90 HiLink slConditional Conditional 80 HiLink slConditional Conditional
91 HiLink slRepeat Repeat 81 HiLink slRepeat Repeat
92 HiLink slCharacter Character 82 HiLink slCharacter Character
93 HiLink slSpecialCharacter slSpecial 83 HiLink slSpecialCharacter slSpecial
94 HiLink slNumber Number 84 HiLink slNumber Number
95 HiLink slFloat Float 85 HiLink slFloat Float
96 HiLink slParenError slError 86 HiLink slParenError slError
97 HiLink slInParen slError 87 HiLink slInParen slError
98 HiLink slCommentError slError 88 HiLink slCommentError slError
99 HiLink slOperator Operator 89 HiLink slOperator Operator
100 HiLink slStorageClass StorageClass 90 HiLink slStorageClass StorageClass
101 HiLink slError Error 91 HiLink slError Error
102 HiLink slStatement Statement 92 HiLink slStatement Statement
103 HiLink slType Type 93 HiLink slType Type
104 HiLink slCommentError slError 94 HiLink slCommentError slError
105 HiLink slCommentString slString 95 HiLink slCommentString slString
106 HiLink slComment2String slString 96 HiLink slComment2String slString
107 HiLink slCommentSkip slComment 97 HiLink slCommentSkip slComment
108 HiLink slString String 98 HiLink slString String
109 HiLink slComment Comment 99 HiLink slComment Comment
110 HiLink slSpecial SpecialChar 100 HiLink slSpecial SpecialChar
111 HiLink slTodo Todo 101 HiLink slTodo Todo
112 HiLink slVariable Identifier 102 HiLink slVariable Identifier
113 "HiLink slIdentifier Identifier 103 "HiLink slIdentifier Identifier
114 104
115 delcommand HiLink 105 delcommand HiLink
116 endif
117 106
118 let b:current_syntax = "sl" 107 let b:current_syntax = "sl"
119 108
120 " vim: ts=8 109 " vim: ts=8