blob: b4bf3477e6dd9d0898575baca0541b4d559d9e33 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: CTRL-H (e.g., ASCII manpages)
3" Maintainer: Bram Moolenaar <Bram@vim.org>
Bram Moolenaard857f0e2005-06-21 22:37:39 +00004" Last Change: 2005 Jun 20
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6" Existing syntax is kept, this file can be used as an addition
7
8" Recognize underlined text: _^Hx
9syntax match CtrlHUnderline /_\b./ contains=CtrlHHide
10
11" Recognize bold text: x^Hx
12syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide
13
14" Hide the CTRL-H (backspace)
15syntax match CtrlHHide /.\b/ contained
16
17" Define the default highlighting.
Bram Moolenaard857f0e2005-06-21 22:37:39 +000018" Only used when an item doesn't have highlighting yet
19hi def link CtrlHHide Ignore
20hi def CtrlHUnderline term=underline cterm=underline gui=underline
21hi def CtrlHBold term=bold cterm=bold gui=bold
Bram Moolenaar071d4272004-06-13 20:20:40 +000022
23" vim: ts=8