1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-29 04:56:43 +01:00
vim/runtime/syntax/xxd.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
862 B
VimL
Raw Permalink Normal View History

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