comparison runtime/syntax/xxd.vim @ 10051:46763b01cd9a

commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 31 22:22:10 2016 +0200 Updated runtime files. Remove HiLink commands.
author Christian Brabandt <cb@256bit.org>
date Wed, 31 Aug 2016 22:30:08 +0200
parents 43efa4f5a8ea
children 8edf0aeb71b9
comparison
equal deleted inserted replaced
10050:b702edc4b2b8 10051:46763b01cd9a
1 " Vim syntax file 1 " Vim syntax file
2 " Language: bin using xxd 2 " Language: bin using xxd
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz> 3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Oct 23, 2014 4 " Last Change: Aug 31, 2016
5 " Version: 8 5 " Version: 10
6 " Notes: use :help xxd to see how to invoke it 6 " Notes: use :help xxd to see how to invoke it
7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD 7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD
8 8
9 " quit when a syntax file was already loaded 9 " quit when a syntax file was already loaded
10 if exists("b:current_syntax") 10 if exists("b:current_syntax")
15 syn match xxdSep contained ":" 15 syn match xxdSep contained ":"
16 syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot 16 syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot
17 syn match xxdDot contained "[.\r]" 17 syn match xxdDot contained "[.\r]"
18 18
19 " Define the default highlighting. 19 " Define the default highlighting.
20 " Only when an item doesn't have highlighting yet 20 if !exists("skip_xxd_syntax_inits")
21 command -nargs=+ HiLink hi def link <args>
22 21
23 HiLink xxdAddress Constant 22 hi def link xxdAddress Constant
24 HiLink xxdSep Identifier 23 hi def link xxdSep Identifier
25 HiLink xxdAscii Statement 24 hi def link xxdAscii Statement
26 25
27 delcommand HiLink 26 endif
28 27
29 let b:current_syntax = "xxd" 28 let b:current_syntax = "xxd"
30 29
31 " vim: ts=4 30 " vim: ts=4