179
|
1 " Vim syntax file
|
|
2 " Language: Kyocera PreScribe2e
|
|
3 " Maintainer: Klaus Muth <klaus@hampft.de>
|
|
4 " URL: http://www.hampft.de/vim/syntax/prescribe.vim
|
|
5 " Last Change: 2005 Mar 04
|
|
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 syn match prescribeSpecial "!R!"
|
|
16
|
|
17 " all prescribe commands
|
|
18 syn keyword prescribeStatement ALTF AMCR ARC ASFN ASTK BARC BLK BOX CALL
|
|
19 syn keyword prescribeStatement CASS CIR CLIP CLPR CLSP COPY CPTH CSET CSTK
|
|
20 syn keyword prescribeStatement CTXT DAF DAM DAP DELF DELM DPAT DRP DRPA DUPX
|
|
21 syn keyword prescribeStatement DXPG DXSD DZP ENDD ENDM ENDR EPL EPRM EXIT
|
|
22 syn keyword prescribeStatement FDIR FILL FLAT FLST FONT FPAT FRPO FSET FTMD
|
|
23 syn keyword prescribeStatement GPAT ICCD INTL JOG LDFC MAP MCRO MDAT MID
|
|
24 syn keyword prescribeStatement MLST MRP MRPA MSTK MTYP MZP NEWP PAGE PARC PAT
|
|
25 syn keyword prescribeStatement PCRP PCZP PDIR RDRP PDZP PELP PIE PMRA PMRP PMZP
|
|
26 syn keyword prescribeStatement PRBX PRRC PSRC PXPL RDMP RES RSL RGST RPCS RPF
|
|
27 syn keyword prescribeStatement RPG RPP RPU RTTX RTXT RVCD RVRD SBM SCAP SCCS
|
|
28 syn keyword prescribeStatement SCF SCG SCP SCPI SCRC SCS SCU SDP SEM SETF SFA
|
|
29 syn keyword prescribeStatement SFNT SIMG SIR SLJN SLM SLPI SLPP SLS SMLT SPD
|
|
30 syn keyword prescribeStatement SPL SPLT SPO SPSZ SPW SRM SRO SROP SSTK STAT STRK
|
|
31 syn keyword prescribeStatement SULP SVCP TATR TEXT TPRS UNIT UOM WIDE WRED XPAT
|
|
32 syn match prescribeStatement "\<ALTB\s\+[ACDEGRST]\>"
|
|
33 syn match prescribeStatement "\<CPPY\s\+[DE]\>"
|
|
34 syn match prescribeStatement "\<EMCR\s\+[DE]\>"
|
|
35 syn match prescribeStatement "\<FRPO\s\+INIT\>"
|
|
36 syn match prescribeStatement "\<JOB[DLOPST]\>"
|
|
37 syn match prescribeStatement "\<LDFC\s\+[CFS]\>"
|
|
38 syn match prescribeStatement "\<RWER\s\+[DFILRSTW]\>"
|
|
39
|
|
40 syn match prescribeCSETArg "[0-9]\{1,3}[A-Z]"
|
|
41 syn match prescribeFRPOArg "[A-Z][0-9]\{1,2}"
|
|
42 syn match prescribeNumber "[0-9]\+"
|
|
43 syn region prescribeString start=+'+ end=+'+ skip=+\\'+
|
|
44 syn region prescribeComment start=+CMNT+ end=+;+
|
|
45
|
|
46 " Define the default highlighting.
|
|
47 " For version 5.7 and earlier: only when not done already
|
|
48 " For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
49 if version >= 508 || !exists("did_prescribe_syn_inits")
|
|
50 if version < 508
|
|
51 let did_prescribe_syn_inits = 1
|
|
52 command -nargs=+ HiLink hi link <args>
|
|
53 else
|
|
54 command -nargs=+ HiLink hi def link <args>
|
|
55 endif
|
|
56
|
|
57 HiLink prescribeSpecial PreProc
|
|
58 HiLink prescribeStatement Statement
|
|
59 HiLink prescribeNumber Number
|
|
60 HiLink prescribeCSETArg String
|
|
61 HiLink prescribeFRPOArg String
|
|
62 HiLink prescribeComment Comment
|
|
63
|
|
64 delcommand HiLink
|
|
65 endif
|
|
66
|
|
67 let b:current_syntax = "prescribe"
|
|
68
|
|
69 " vim: ts=8
|