Mercurial > vim
annotate runtime/syntax/dcd.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 3fc0f57ecb91 |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: WildPackets EtherPeek Decoder (.dcd) file | |
3 " Maintainer: Christopher Shinn <christopher@lucent.com> | |
4 " Last Change: 2003 Apr 25 | |
5 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
7 if exists("b:current_syntax") |
7 | 8 finish |
9 endif | |
10 | |
11 " Keywords | |
12 syn keyword dcdFunction DCod TRTS TNXT CRLF | |
13 syn match dcdFunction display "\(STR\)\#" | |
14 syn keyword dcdLabel LABL | |
15 syn region dcdLabel start="[A-Z]" end=";" | |
16 syn keyword dcdConditional CEQU CNEQ CGTE CLTE CBIT CLSE | |
17 syn keyword dcdConditional LSTS LSTE LSTZ | |
18 syn keyword dcdConditional TYPE TTST TEQU TNEQ TGTE TLTE TBIT TLSE TSUB SKIP | |
19 syn keyword dcdConditional MARK WHOA | |
20 syn keyword dcdConditional SEQU SNEQ SGTE SLTE SBIT | |
21 syn match dcdConditional display "\(CST\)\#" "\(TST\)\#" | |
22 syn keyword dcdDisplay HBIT DBIT BBIT | |
23 syn keyword dcdDisplay HBYT DBYT BBYT | |
24 syn keyword dcdDisplay HWRD DWRD BWRD | |
25 syn keyword dcdDisplay HLNG DLNG BLNG | |
26 syn keyword dcdDisplay D64B | |
27 syn match dcdDisplay display "\(HEX\)\#" "\(CHR\)\#" "\(EBC\)\#" | |
28 syn keyword dcdDisplay HGLB DGLB BGLB | |
29 syn keyword dcdDisplay DUMP | |
30 syn keyword dcdStatement IPLG IPV6 ATLG AT03 AT01 ETHR TRNG PRTO PORT | |
31 syn keyword dcdStatement TIME OSTP PSTR CSTR NBNM DMPE FTPL CKSM FCSC | |
32 syn keyword dcdStatement GBIT GBYT GWRD GLNG | |
33 syn keyword dcdStatement MOVE ANDG ORRG NOTG ADDG SUBG MULG DIVG MODG INCR DECR | |
34 syn keyword dcdSpecial PRV1 PRV2 PRV3 PRV4 PRV5 PRV6 PRV7 PRV8 | |
35 | |
36 " Comment | |
37 syn region dcdComment start="\*" end="\;" | |
38 | |
39 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
40 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
41 command -nargs=+ HiLink hi def link <args> |
7 | 42 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
43 HiLink dcdFunction Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
44 HiLink dcdLabel Constant |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
45 HiLink dcdConditional Conditional |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
46 HiLink dcdDisplay Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
47 HiLink dcdStatement Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
48 HiLink dcdSpecial Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
49 HiLink dcdComment Comment |
7 | 50 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
51 delcommand HiLink |
7 | 52 |
53 let b:current_syntax = "dcd" |