annotate runtime/syntax/kscript.vim @ 7176:30042ddff503

commit https://github.com/vim/vim/commit/60cce2fb736c8ff6fdb9603f502d3c15f1f7a25d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 13 23:21:27 2015 +0200 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Oct 2015 23:30:05 +0200
parents 7bc41231fbc7
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: kscript
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Thomas Capricelli <orzel@yalbi.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://aquila.rezel.enst.fr/thomas/vim/kscript.vim
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
5 " CVS: $Id: kscript.vim,v 1.1 2004/06/13 17:40:02 vimboss Exp $
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword kscriptPreCondit import from
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword kscriptHardCoded print println connect length arg mid upper lower isEmpty toInt toFloat findApplication
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword kscriptConditional if else switch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword kscriptRepeat while for do foreach
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword kscriptExceptions emit catch raise try signal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword kscriptFunction class struct enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword kscriptConst FALSE TRUE false true
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword kscriptStatement return delete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword kscriptLabel case default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword kscriptStorageClass const
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword kscriptType in out inout var
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword kscriptTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region kscriptComment start="/\*" end="\*/" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match kscriptComment "//.*" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match kscriptComment "#.*$" contains=kscriptTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn region kscriptString start=+'+ end=+'+ skip=+\\\\\|\\'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region kscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region kscriptString start=+"""+ end=+"""+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region kscriptString start=+'''+ end=+'''+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if version >= 508 || !exists("did_kscript_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 let did_kscript_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink kscriptConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink kscriptRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink kscriptExceptions Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink kscriptFunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink kscriptConst Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink kscriptStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink kscriptLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink kscriptStorageClass StorageClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink kscriptType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink kscriptTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink kscriptComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink kscriptString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink kscriptPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink kscriptHardCoded Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 let b:current_syntax = "kscript"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 " vim: ts=8