annotate runtime/syntax/ctrlh.vim @ 23916:cdb1a04f8189

Added tag v8.2.2500 for changeset 40fe7d8a3c9382e4ca53106c2741a2afd85fa314
author Bram Moolenaar <Bram@vim.org>
date Thu, 11 Feb 2021 19:30:04 +0100
parents 7033303ea0c0
children 4027cefc2aab
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: CTRL-H (e.g., ASCII manpages)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
4 " Last Change: 2005 Jun 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Existing syntax is kept, this file can be used as an addition
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Recognize underlined text: _^Hx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax match CtrlHUnderline /_\b./ contains=CtrlHHide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Recognize bold text: x^Hx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Hide the CTRL-H (backspace)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax match CtrlHHide /.\b/ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Define the default highlighting.
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
18 " Only used when an item doesn't have highlighting yet
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
19 hi def link CtrlHHide Ignore
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
20 hi def CtrlHUnderline term=underline cterm=underline gui=underline
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
21 hi def CtrlHBold term=bold cterm=bold gui=bold
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " vim: ts=8