Mercurial > vim
comparison runtime/syntax/gp.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 | af1e8a1714c2 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: gp (version 2.5) | 2 " Language: gp (version 2.5) |
3 " Maintainer: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr> | 3 " Maintainer: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr> |
4 " Last change: 2012 Jan 08 | 4 " Last change: 2012 Jan 08 |
5 " URL: http://pari.math.u-bordeaux.fr | 5 " URL: http://pari.math.u-bordeaux.fr |
6 | 6 |
7 if version < 600 | 7 " quit when a syntax file was already loaded |
8 syntax clear | 8 if exists("b:current_syntax") |
9 elseif exists("b:current_syntax") | |
10 finish | 9 finish |
11 endif | 10 endif |
12 | 11 |
13 let s:cpo_save = &cpo | 12 let s:cpo_save = &cpo |
14 set cpo&vim | 13 set cpo&vim |
57 "catch errors caused by wrong parenthesis | 56 "catch errors caused by wrong parenthesis |
58 syntax region gpParen transparent start='(' end=')' contains=ALLBUT,gpParenError,gpTodo,gpFunction,gpArgs,gpSpecial | 57 syntax region gpParen transparent start='(' end=')' contains=ALLBUT,gpParenError,gpTodo,gpFunction,gpArgs,gpSpecial |
59 syntax match gpParenError ")" | 58 syntax match gpParenError ")" |
60 syntax match gpInParen contained "[{}]" | 59 syntax match gpInParen contained "[{}]" |
61 | 60 |
62 if version >= 508 || !exists("did_gp_syn_inits") | 61 command -nargs=+ HiLink hi def link <args> |
63 if version < 508 | |
64 let did_gp_syn_inits = 1 | |
65 command -nargs=+ HiLink hi link <args> | |
66 else | |
67 command -nargs=+ HiLink hi def link <args> | |
68 endif | |
69 | 62 |
70 HiLink gpConditional Conditional | 63 HiLink gpConditional Conditional |
71 HiLink gpRepeat Repeat | 64 HiLink gpRepeat Repeat |
72 HiLink gpError Error | 65 HiLink gpError Error |
73 HiLink gpParenError gpError | 66 HiLink gpParenError gpError |
74 HiLink gpInParen gpError | 67 HiLink gpInParen gpError |
75 HiLink gpStatement Statement | 68 HiLink gpStatement Statement |
76 HiLink gpString String | 69 HiLink gpString String |
77 HiLink gpComment Comment | 70 HiLink gpComment Comment |
78 HiLink gpInterface Type | 71 HiLink gpInterface Type |
79 HiLink gpInput Type | 72 HiLink gpInput Type |
80 HiLink gpInterfaceKey Statement | 73 HiLink gpInterfaceKey Statement |
81 HiLink gpFunction Function | 74 HiLink gpFunction Function |
82 HiLink gpScope Type | 75 HiLink gpScope Type |
83 " contained ones | 76 " contained ones |
84 HiLink gpSpecial Special | 77 HiLink gpSpecial Special |
85 HiLink gpTodo Todo | 78 HiLink gpTodo Todo |
86 HiLink gpArgs Type | 79 HiLink gpArgs Type |
87 delcommand HiLink | 80 delcommand HiLink |
88 endif | |
89 | 81 |
90 let b:current_syntax = "gp" | 82 let b:current_syntax = "gp" |
91 let &cpo = s:cpo_save | 83 let &cpo = s:cpo_save |
92 unlet s:cpo_save | 84 unlet s:cpo_save |
93 " vim: ts=8 | 85 " vim: ts=8 |