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
9if version < 600
10  syntax clear
11elseif exists("b:current_syntax")
12  finish
13endif
14
15" tags
16syn keyword vsejclKeyword DLBL EXEC JOB ASSGN EOJ
17syn keyword vsejclField JNM CLASS DISP USER SYSID JSEP SIZE
18syn keyword vsejclField VSAM
19syn region vsejclComment start="^/\*" end="$"
20syn region vsejclComment start="^[\* ]\{}$" end="$"
21syn region vsejclMisc start="^  " end="$" contains=Jparms
22syn match vsejclString /'.\{-}'/
23syn 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
28if 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
45endif
46
47let b:current_syntax = "vsejcl"
48
49" vim: ts=4
50