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