Mercurial > vim
comparison runtime/syntax/kscript.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 | 7bc41231fbc7 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
2 " Language: kscript | 2 " Language: kscript |
3 " Maintainer: Thomas Capricelli <orzel@yalbi.com> | 3 " Maintainer: Thomas Capricelli <orzel@yalbi.com> |
4 " URL: http://aquila.rezel.enst.fr/thomas/vim/kscript.vim | 4 " URL: http://aquila.rezel.enst.fr/thomas/vim/kscript.vim |
5 " CVS: $Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $ | 5 " CVS: $Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $ |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 syn keyword kscriptPreCondit import from | 12 syn keyword kscriptPreCondit import from |
16 | 13 |
35 syn region kscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+ | 32 syn region kscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+ |
36 syn region kscriptString start=+"""+ end=+"""+ | 33 syn region kscriptString start=+"""+ end=+"""+ |
37 syn region kscriptString start=+'''+ end=+'''+ | 34 syn region kscriptString start=+'''+ end=+'''+ |
38 | 35 |
39 " Define the default highlighting. | 36 " Define the default highlighting. |
40 " For version 5.7 and earlier: only when not done already | 37 " Only when an item doesn't have highlighting yet |
41 " For version 5.8 and later: only when an item doesn't have highlighting yet | 38 command -nargs=+ HiLink hi def link <args> |
42 if version >= 508 || !exists("did_kscript_syntax_inits") | |
43 if version < 508 | |
44 let did_kscript_syntax_inits = 1 | |
45 command -nargs=+ HiLink hi link <args> | |
46 else | |
47 command -nargs=+ HiLink hi def link <args> | |
48 endif | |
49 | 39 |
50 HiLink kscriptConditional Conditional | 40 HiLink kscriptConditional Conditional |
51 HiLink kscriptRepeat Repeat | 41 HiLink kscriptRepeat Repeat |
52 HiLink kscriptExceptions Statement | 42 HiLink kscriptExceptions Statement |
53 HiLink kscriptFunction Function | 43 HiLink kscriptFunction Function |
54 HiLink kscriptConst Constant | 44 HiLink kscriptConst Constant |
55 HiLink kscriptStatement Statement | 45 HiLink kscriptStatement Statement |
56 HiLink kscriptLabel Label | 46 HiLink kscriptLabel Label |
57 HiLink kscriptStorageClass StorageClass | 47 HiLink kscriptStorageClass StorageClass |
58 HiLink kscriptType Type | 48 HiLink kscriptType Type |
59 HiLink kscriptTodo Todo | 49 HiLink kscriptTodo Todo |
60 HiLink kscriptComment Comment | 50 HiLink kscriptComment Comment |
61 HiLink kscriptString String | 51 HiLink kscriptString String |
62 HiLink kscriptPreCondit PreCondit | 52 HiLink kscriptPreCondit PreCondit |
63 HiLink kscriptHardCoded Statement | 53 HiLink kscriptHardCoded Statement |
64 | 54 |
65 delcommand HiLink | 55 delcommand HiLink |
66 endif | |
67 | 56 |
68 let b:current_syntax = "kscript" | 57 let b:current_syntax = "kscript" |
69 | 58 |
70 " vim: ts=8 | 59 " vim: ts=8 |