Mercurial > vim
annotate runtime/syntax/ctrlh.vim @ 18518:59c56c97049d v8.1.2253
patch 8.1.2253: using "which" to check for an executable is not reliable
Commit: https://github.com/vim/vim/commit/ad4de52510d5b4a949c0c9e25b5d5333744820b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 4 21:24:48 2019 +0100
patch 8.1.2253: using "which" to check for an executable is not reliable
Problem: Using "which" to check for an executable is not reliable.
Solution: Use "command -v" instead. Also exit with error code when
generating tags has an error. (closes #5174)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Nov 2019 21:30:03 +0100 |
parents | 7033303ea0c0 |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: CTRL-H (e.g., ASCII manpages) | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
344 | 4 " Last Change: 2005 Jun 20 |
7 | 5 |
6 " Existing syntax is kept, this file can be used as an addition | |
7 | |
8 " Recognize underlined text: _^Hx | |
9 syntax match CtrlHUnderline /_\b./ contains=CtrlHHide | |
10 | |
11 " Recognize bold text: x^Hx | |
12 syntax match CtrlHBold /\(.\)\b\1/ contains=CtrlHHide | |
13 | |
14 " Hide the CTRL-H (backspace) | |
15 syntax match CtrlHHide /.\b/ contained | |
16 | |
17 " Define the default highlighting. | |
344 | 18 " Only used when an item doesn't have highlighting yet |
19 hi def link CtrlHHide Ignore | |
20 hi def CtrlHUnderline term=underline cterm=underline gui=underline | |
21 hi def CtrlHBold term=bold cterm=bold gui=bold | |
7 | 22 |
23 " vim: ts=8 |