comparison runtime/syntax/sather.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
7 " Sather is a OO-language developped at the International Computer Science 7 " Sather is a OO-language developped at the International Computer Science
8 " Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather. 8 " Institute (ICSI) in Berkeley, CA. pSather is a parallel extension to Sather.
9 " Homepage: http://www.icsi.berkeley.edu/~sather 9 " Homepage: http://www.icsi.berkeley.edu/~sather
10 " Sather files use .sa as suffix 10 " Sather files use .sa as suffix
11 11
12 " For version 5.x: Clear all syntax items 12 " quit when a syntax file was already loaded
13 " For version 6.x: Quit when a syntax file was already loaded 13 if exists("b:current_syntax")
14 if version < 600
15 syntax clear
16 elseif exists("b:current_syntax")
17 finish 14 finish
18 endif 15 endif
19 16
20 " keyword definitions 17 " keyword definitions
21 syn keyword satherExternal extern 18 syn keyword satherExternal extern
59 56
60 57
61 syn sync ccomment satherComment 58 syn sync ccomment satherComment
62 59
63 " Define the default highlighting. 60 " Define the default highlighting.
64 " For version 5.7 and earlier: only when not done already 61 " Only when an item doesn't have highlighting yet
65 " For version 5.8 and later: only when an item doesn't have highlighting yet 62 command -nargs=+ HiLink hi def link <args>
66 if version >= 508 || !exists("did_sather_syn_inits")
67 if version < 508
68 let did_sather_syn_inits = 1
69 command -nargs=+ HiLink hi link <args>
70 else
71 command -nargs=+ HiLink hi def link <args>
72 endif
73 63
74 HiLink satherBranch satherStatement 64 HiLink satherBranch satherStatement
75 HiLink satherLabel satherStatement 65 HiLink satherLabel satherStatement
76 HiLink satherConditional satherStatement 66 HiLink satherConditional satherStatement
77 HiLink satherSynchronize satherStatement 67 HiLink satherSynchronize satherStatement
78 HiLink satherRepeat satherStatement 68 HiLink satherRepeat satherStatement
79 HiLink satherExceptions satherStatement 69 HiLink satherExceptions satherStatement
80 HiLink satherStorageClass satherDeclarative 70 HiLink satherStorageClass satherDeclarative
81 HiLink satherMethodDecl satherDeclarative 71 HiLink satherMethodDecl satherDeclarative
82 HiLink satherClassDecl satherDeclarative 72 HiLink satherClassDecl satherDeclarative
83 HiLink satherScopeDecl satherDeclarative 73 HiLink satherScopeDecl satherDeclarative
84 HiLink satherBoolValue satherValue 74 HiLink satherBoolValue satherValue
85 HiLink satherSpecial satherValue 75 HiLink satherSpecial satherValue
86 HiLink satherString satherValue 76 HiLink satherString satherValue
87 HiLink satherCharacter satherValue 77 HiLink satherCharacter satherValue
88 HiLink satherSpecialCharacter satherValue 78 HiLink satherSpecialCharacter satherValue
89 HiLink satherNumber satherValue 79 HiLink satherNumber satherValue
90 HiLink satherStatement Statement 80 HiLink satherStatement Statement
91 HiLink satherOperator Statement 81 HiLink satherOperator Statement
92 HiLink satherComment Comment 82 HiLink satherComment Comment
93 HiLink satherType Type 83 HiLink satherType Type
94 HiLink satherValue String 84 HiLink satherValue String
95 HiLink satherString String 85 HiLink satherString String
96 HiLink satherSpecial String 86 HiLink satherSpecial String
97 HiLink satherCharacter String 87 HiLink satherCharacter String
98 HiLink satherDeclarative Type 88 HiLink satherDeclarative Type
99 HiLink satherExternal PreCondit 89 HiLink satherExternal PreCondit
100 delcommand HiLink 90 delcommand HiLink
101 endif
102 91
103 let b:current_syntax = "sather" 92 let b:current_syntax = "sather"
104 93
105 " vim: ts=8 94 " vim: ts=8