comparison runtime/syntax/ave.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
9 " and a built-in editor is provided, the use of VIM increases 9 " and a built-in editor is provided, the use of VIM increases
10 " development speed. 10 " development speed.
11 " I use some technologies to automatically load avenue scripts 11 " I use some technologies to automatically load avenue scripts
12 " into ArcView. 12 " into ArcView.
13 13
14 " For version 5.x: Clear all syntax items 14 " quit when a syntax file was already loaded
15 " For version 6.x: Quit when a syntax file was already loaded 15 if exists("b:current_syntax")
16 if version < 600
17 syntax clear
18 elseif exists("b:current_syntax")
19 finish 16 finish
20 endif 17 endif
21 18
22 " Avenue is entirely case-insensitive. 19 " Avenue is entirely case-insensitive.
23 syn case ignore 20 syn case ignore
57 " for C programmers: 54 " for C programmers:
58 syn match aveTypos "==" 55 syn match aveTypos "=="
59 syn match aveTypos "!=" 56 syn match aveTypos "!="
60 57
61 " Define the default highlighting. 58 " Define the default highlighting.
62 " For version 5.7 and earlier: only when not done already 59 " Only when an item doesn't have highlighting+yet
63 " For version 5.8 and later: only when an item doesn't have highlighting+yet 60 command -nargs=+ HiLink hi def link <args>
64 if version >= 508 || !exists("did_ave_syn_inits")
65 if version < 508
66 let did_ave_syn_inits = 1
67 command -nargs=+ HiLink hi link <args>
68 else
69 command -nargs=+ HiLink hi def link <args>
70 endif
71 61
72 HiLink aveStatement Statement 62 HiLink aveStatement Statement
73 63
74 HiLink aveString String 64 HiLink aveString String
75 HiLink aveNumber Number 65 HiLink aveNumber Number
76 66
77 HiLink aveFixVariables Special 67 HiLink aveFixVariables Special
78 HiLink aveVariables Identifier 68 HiLink aveVariables Identifier
79 HiLink globalVariables Special 69 HiLink globalVariables Special
80 HiLink aveConst Special 70 HiLink aveConst Special
81 71
82 HiLink aveClassMethods Function 72 HiLink aveClassMethods Function
83 73
84 HiLink aveOperator Operator 74 HiLink aveOperator Operator
85 HiLink aveComment Comment 75 HiLink aveComment Comment
86 76
87 HiLink aveTypos Error 77 HiLink aveTypos Error
88 78
89 delcommand HiLink 79 delcommand HiLink
90 endif
91 80
92 let b:current_syntax = "ave" 81 let b:current_syntax = "ave"