Mercurial > vim
comparison runtime/syntax/cl.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 | 7ffc704cb7c1 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
8 " *.eni | 8 " *.eni |
9 " Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block | 9 " Maintainer: Philip Uren <philuSPAX@ieee.org> Remove SPAX spam block |
10 " Version: 6 | 10 " Version: 6 |
11 " Last Change: Mar 06 2013 | 11 " Last Change: Mar 06 2013 |
12 | 12 |
13 " For version 5.x: Clear all syntax items | 13 " quit when a syntax file was already loaded |
14 " For version 6.x: Quit when a syntax file was already loaded | 14 if exists("b:current_syntax") |
15 if version < 600 | |
16 syntax clear | |
17 elseif exists("b:current_syntax") | |
18 finish | 15 finish |
19 endif | 16 endif |
20 | 17 |
21 if version >= 600 | 18 setlocal iskeyword=@,48-57,_,- |
22 setlocal iskeyword=@,48-57,_,- | |
23 else | |
24 set iskeyword=@,48-57,_,- | |
25 endif | |
26 | 19 |
27 syn case ignore | 20 syn case ignore |
28 | 21 |
29 syn sync lines=300 | 22 syn sync lines=300 |
30 | 23 |
73 syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match | 66 syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match |
74 | 67 |
75 syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do | 68 syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do |
76 | 69 |
77 " Define the default highlighting. | 70 " Define the default highlighting. |
78 " For version 5.7 and earlier: only when not done already | 71 " 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 | 72 command -nargs=+ HiLink hi def link <args> |
80 if version >= 508 || !exists("did_cl_syntax_inits") | |
81 if version < 508 | |
82 let did_cl_syntax_inits = 1 | |
83 command -nargs=+ HiLink hi link <args> | |
84 else | |
85 command -nargs=+ HiLink hi def link <args> | |
86 endif | |
87 | 73 |
88 HiLink clifError Error | 74 HiLink clifError Error |
89 HiLink clSpaceError Error | 75 HiLink clSpaceError Error |
90 HiLink clWhile Repeat | 76 HiLink clWhile Repeat |
91 HiLink clConditional Conditional | 77 HiLink clConditional Conditional |
92 HiLink clDebug Debug | 78 HiLink clDebug Debug |
93 HiLink clNeedsWork Todo | 79 HiLink clNeedsWork Todo |
94 HiLink clTodo Todo | 80 HiLink clTodo Todo |
95 HiLink clComment Comment | 81 HiLink clComment Comment |
96 HiLink clProcedure Procedure | 82 HiLink clProcedure Procedure |
97 HiLink clBreak Procedure | 83 HiLink clBreak Procedure |
98 HiLink clInclude Include | 84 HiLink clInclude Include |
99 HiLink clSetOption Statement | 85 HiLink clSetOption Statement |
100 HiLink clSet Identifier | 86 HiLink clSet Identifier |
101 HiLink clPreProc PreProc | 87 HiLink clPreProc PreProc |
102 HiLink clOperator Operator | 88 HiLink clOperator Operator |
103 HiLink clNumber Number | 89 HiLink clNumber Number |
104 HiLink clString String | 90 HiLink clString String |
105 HiLink clQuote Delimiter | 91 HiLink clQuote Delimiter |
106 HiLink clReserved Identifier | 92 HiLink clReserved Identifier |
107 HiLink clFunction Function | 93 HiLink clFunction Function |
108 HiLink clStatement Statement | 94 HiLink clStatement Statement |
109 | 95 |
110 delcommand HiLink | 96 delcommand HiLink |
111 endif | |
112 | 97 |
113 let b:current_syntax = "cl" | 98 let b:current_syntax = "cl" |
114 | 99 |
115 " vim: ts=8 sw=8 | 100 " vim: ts=8 sw=8 |