blob: b34f33578551cf9bae6b56077f7ec9023033d0f9 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: CTRL-H (e.g., ASCII manpages)
Christian Brabandte978b452023-08-13 10:33:05 +02003" Maintainer: The Vim Project <https://github.com/vim/vim>
4" Last Change: 2023 Aug 10
5" Former Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7" Existing syntax is kept, this file can be used as an addition
8
9" Recognize underlined text: _^Hx
10syntax match CtrlHUnderline /_\b./ contains=CtrlHHide
11
12" Recognize bold text: x^Hx
13syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide
14
15" Hide the CTRL-H (backspace)
16syntax match CtrlHHide /.\b/ contained
17
18" Define the default highlighting.
Bram Moolenaard857f0e2005-06-21 22:37:39 +000019" Only used when an item doesn't have highlighting yet
20hi def link CtrlHHide Ignore
21hi def CtrlHUnderline term=underline cterm=underline gui=underline
22hi def CtrlHBold term=bold cterm=bold gui=bold
Bram Moolenaar071d4272004-06-13 20:20:40 +000023
24" vim: ts=8