annotate runtime/syntax/dcd.vim @ 9530:46426dc637f6

Added tag v7.4.2045 for changeset 581d5131629f3acbf9aec2c4dcb56aa7949e34b5
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jul 2016 21:30:09 +0200
parents 3fc0f57ecb91
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: WildPackets EtherPeek Decoder (.dcd) file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Christopher Shinn <christopher@lucent.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 Apr 25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword dcdFunction DCod TRTS TNXT CRLF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match dcdFunction display "\(STR\)\#"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword dcdLabel LABL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region dcdLabel start="[A-Z]" end=";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword dcdConditional CEQU CNEQ CGTE CLTE CBIT CLSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword dcdConditional LSTS LSTE LSTZ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword dcdConditional TYPE TTST TEQU TNEQ TGTE TLTE TBIT TLSE TSUB SKIP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword dcdConditional MARK WHOA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword dcdConditional SEQU SNEQ SGTE SLTE SBIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match dcdConditional display "\(CST\)\#" "\(TST\)\#"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword dcdDisplay HBIT DBIT BBIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword dcdDisplay HBYT DBYT BBYT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword dcdDisplay HWRD DWRD BWRD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword dcdDisplay HLNG DLNG BLNG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword dcdDisplay D64B
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match dcdDisplay display "\(HEX\)\#" "\(CHR\)\#" "\(EBC\)\#"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword dcdDisplay HGLB DGLB BGLB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword dcdDisplay DUMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword dcdStatement IPLG IPV6 ATLG AT03 AT01 ETHR TRNG PRTO PORT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword dcdStatement TIME OSTP PSTR CSTR NBNM DMPE FTPL CKSM FCSC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword dcdStatement GBIT GBYT GWRD GLNG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword dcdStatement MOVE ANDG ORRG NOTG ADDG SUBG MULG DIVG MODG INCR DECR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword dcdSpecial PRV1 PRV2 PRV3 PRV4 PRV5 PRV6 PRV7 PRV8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region dcdComment start="\*" end="\;"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " 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
45 if version >= 508 || !exists("did_dcd_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 let did_dcd_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink dcdFunction Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink dcdLabel Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink dcdConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink dcdDisplay Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink dcdStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink dcdSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink dcdComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 let b:current_syntax = "dcd"