1" Vim syntax file 2" Language: bin using xxd 3" Maintainer: Charles E. Campbell <[email protected]> 4" Last Change: Aug 31, 2016 5" Version: 11 6" Notes: use :help xxd to see how to invoke it 7" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD 8 9" quit when a syntax file was already loaded 10if exists("b:current_syntax") 11 finish 12endif 13 14syn match xxdAddress "^[0-9a-f]\+:" contains=xxdSep 15syn match xxdSep contained ":" 16syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot 17syn match xxdDot contained "[.\r]" 18 19" Define the default highlighting. 20if !exists("skip_xxd_syntax_inits") 21 22 hi def link xxdAddress Constant 23 hi def link xxdSep Identifier 24 hi def link xxdAscii Statement 25 26endif 27 28let b:current_syntax = "xxd" 29 30" vim: ts=4 31