neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

xxd.vim (862B)


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