Mercurial > vim
annotate runtime/syntax/xxd.vim @ 23650:83a69ada0274 v8.2.2367
patch 8.2.2367: test failures on some less often used systems
Commit: https://github.com/vim/vim/commit/239f8d932672bcf5be6d32fc7c0bf95a2e69f5eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 17 13:21:20 2021 +0100
patch 8.2.2367: test failures on some less often used systems
Problem: Test failures on some less often used systems.
Solution: Adjust printf formats and types. (James McCoy, closes https://github.com/vim/vim/issues/7691)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Jan 2021 13:30:05 +0100 |
parents | 8edf0aeb71b9 |
children | 02bd0fe77c68 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: bin using xxd | |
19180 | 3 " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM> |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
4 " Last Change: Aug 31, 2016 |
19180 | 5 " Version: 11 |
7 | 6 " Notes: use :help xxd to see how to invoke it |
6479 | 7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD |
7 | 8 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
9 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
10 if exists("b:current_syntax") |
7 | 11 finish |
12 endif | |
13 | |
14 syn match xxdAddress "^[0-9a-f]\+:" contains=xxdSep | |
15 syn match xxdSep contained ":" | |
16 syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot | |
17 syn match xxdDot contained "[.\r]" | |
18 | |
19 " Define the default highlighting. | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
20 if !exists("skip_xxd_syntax_inits") |
7 | 21 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
22 hi def link xxdAddress Constant |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
23 hi def link xxdSep Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
24 hi def link xxdAscii Statement |
7 | 25 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
26 endif |
7 | 27 |
28 let b:current_syntax = "xxd" | |
29 | |
30 " vim: ts=4 |