annotate runtime/syntax/vsejcl.vim @ 0:76efa0be13f1

Initial revision
author atsuki
date Sat, 10 Nov 2007 15:07:22 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim syntax file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: JCL job control language - DOS/VSE
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 " Maintainer: Davyd Ondrejko <david.ondrejko@safelite.com>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 " URL:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 " Last change: 2001 May 10
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 if version < 600
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 syntax clear
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 elseif exists("b:current_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 finish
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 " tags
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 syn keyword vsejclKeyword DLBL EXEC JOB ASSGN EOJ
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 syn keyword vsejclField JNM CLASS DISP USER SYSID JSEP SIZE
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 syn keyword vsejclField VSAM
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 syn region vsejclComment start="^/\*" end="$"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 syn region vsejclComment start="^[\* ]\{}$" end="$"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 syn region vsejclMisc start="^ " end="$" contains=Jparms
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 syn match vsejclString /'.\{-}'/
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23 syn match vsejclParms /(.\{-})/ contained
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 " Define the default highlighting.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26 " For version 5.7 and earlier: only when not done already
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 " For version 5.8 and later: only when an item doesn't have highlighting yet
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 if version >= 508 || !exists("did_vsejcl_syntax")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 if version < 508
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 let did_vsejcl_syntax = 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 command -nargs=+ HiLink hi link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 else
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33 command -nargs=+ HiLink hi def link <args>
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 HiLink vsejclComment Comment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37 HiLink vsejclField Type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 HiLink vsejclKeyword Statement
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 HiLink vsejclObject Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 HiLink vsejclString Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 HiLink vsejclMisc Special
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42 HiLink vsejclParms Constant
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 delcommand HiLink
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 let b:current_syntax = "vsejcl"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 " vim: ts=4