annotate runtime/syntax/xxd.vim @ 31871:e46f41a1b7c5 v9.0.1268

patch 9.0.1268: .clangd and .stylelintrc files don't get a filetype Commit: https://github.com/vim/vim/commit/9c51798a1f3b79ace5ae0551a8bb122025ac94ed Author: Mark Skelton <mdskelton99@gmail.com> Date: Tue Jan 31 18:57:17 2023 +0000 patch 9.0.1268: .clangd and .stylelintrc files don't get a filetype Problem: .clangd and .stylelintrc files don't get a filetype. Solution: Use yaml for .clangd and json for .stylelintrc files. (Mark Skelton, closes #11916)
author Bram Moolenaar <Bram@vim.org>
date Tue, 31 Jan 2023 20:00:07 +0100
parents 8edf0aeb71b9
children 02bd0fe77c68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: bin using xxd
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
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
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Version: 11
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Notes: use :help xxd to see how to invoke it
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
7 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_XXD
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn match xxdAddress "^[0-9a-f]\+:" contains=xxdSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match xxdSep contained ":"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match xxdAscii " .\{,16\}\r\=$"hs=s+2 contains=xxdDot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match xxdDot contained "[.\r]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
26 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 let b:current_syntax = "xxd"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " vim: ts=4