annotate runtime/syntax/xxd.vim @ 8511:2712bfe5d62e

Added tag v7.4.1545 for changeset 9f5bd031530d829262abac038244bfa7f3057abb
author Christian Brabandt <cb@256bit.org>
date Sat, 12 Mar 2016 16:30:04 +0100
parents b3bc99b909c3
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: bin using xxd
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
4 " Last Change: Oct 23, 2014
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
5 " Version: 8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Notes: use :help xxd to see how to invoke it
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match xxdAddress "^[0-9a-f]\+:" contains=xxdSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match xxdSep contained ":"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match xxdDot contained "[.\r]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " 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
25 if version >= 508 || !exists("did_xxd_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 let did_xxd_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 HiLink xxdAddress Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 HiLink xxdSep Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 HiLink xxdAscii Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 let b:current_syntax = "xxd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " vim: ts=4