comparison runtime/syntax/opl.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 b7811ab264bf
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
4 " Last Change: 2012 Feb 03 by Thilo Six 4 " Last Change: 2012 Feb 03 by Thilo Six
5 " $Id: opl.vim,v 1.1 2004/06/13 17:34:11 vimboss Exp $ 5 " $Id: opl.vim,v 1.1 2004/06/13 17:34:11 vimboss Exp $
6 6
7 " Open Psion Language... (EPOC16/EPOC32) 7 " Open Psion Language... (EPOC16/EPOC32)
8 8
9 " For version 5.x: Clear all syntax items 9 " quit when a syntax file was already loaded
10 " For version 6.x: Quit when a syntax file was already loaded 10 if exists("b:current_syntax")
11 if version < 600
12 syntax clear
13 elseif exists("b:current_syntax")
14 finish 11 finish
15 endif 12 endif
16 13
17 let s:cpo_save = &cpo 14 let s:cpo_save = &cpo
18 set cpo&vim 15 set cpo&vim
73 syn region OPLString start=+"+ end=+"+ 70 syn region OPLString start=+"+ end=+"+
74 syn region OPLComment start="REM[\t ]" end="$" 71 syn region OPLComment start="REM[\t ]" end="$"
75 syn match OPLMathsOperator "-\|=\|[:<>+\*^/\\]" 72 syn match OPLMathsOperator "-\|=\|[:<>+\*^/\\]"
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_OPL_syntax_inits")
81 if version < 508
82 let did_OPL_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 OPLStatement Statement 78 HiLink OPLStatement Statement
89 HiLink OPLNumber Number 79 HiLink OPLNumber Number
90 HiLink OPLString String 80 HiLink OPLString String
91 HiLink OPLComment Comment 81 HiLink OPLComment Comment
92 HiLink OPLMathsOperator Conditional 82 HiLink OPLMathsOperator Conditional
93 " HiLink OPLError Error 83 " HiLink OPLError Error
94 84
95 delcommand HiLink 85 delcommand HiLink
96 endif
97 86
98 let b:current_syntax = "opl" 87 let b:current_syntax = "opl"
99 88
100 let &cpo = s:cpo_save 89 let &cpo = s:cpo_save
101 unlet s:cpo_save 90 unlet s:cpo_save