Mercurial > vim
annotate runtime/syntax/xxd.vim @ 30069:cb21745cbbab v9.0.0372
patch 9.0.0372: MS-Windows: "%T" time format does not appear to work
Commit: https://github.com/vim/vim/commit/5fbbec180b623cd6ebfc9528be6fa70b4cf664d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 3 22:08:11 2022 +0100
patch 9.0.0372: MS-Windows: "%T" time format does not appear to work
Problem: MS-Windows: "%T" time format does not appear to work.
Solution: Use "%H:%M:%S" instead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Sep 2022 23:15:03 +0200 |
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 |