Skip to content

Commit 02a9fcd

Browse files
author
Bruno Sutic
committed
Syntax bugfix: urls can't contains tabs
1 parent 707b385 commit 02a9fcd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- add "guards" for the autoload files
66
- add syntax highlighting for files in FILES manpage section
77
- syntax highlighting for environment variables in ENVIRONMENT manpage section
8+
- syntax bugfix: url's can't contain tab characters
89

910
### v0.1.0, Jan 24, 2015
1011

syntax/man.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ syntax match manReference '\<\zs\(\f\|:\)\+(\([nlpo]\|\d[a-z]*\)\?)\ze\(\W
1010
syntax match manTitle '^\(\f\|:\)\+([0-9nlpo][a-z]*).*'
1111
syntax match manSectionHeading '^[a-z][a-z0-9& ,.-]*[a-z]$'
1212
syntax match manHeaderFile '\s\zs<\f\+\.h>\ze\(\W\|$\)'
13-
syntax match manURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
13+
syntax match manURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
1414
syntax match manEmail '<\?[a-zA-Z0-9_.+-]\+@[a-zA-Z0-9-]\+\.[a-zA-Z0-9-.]\+>\?'
1515
syntax match manHighlight +`.\{-}''\?+
1616

0 commit comments

Comments
 (0)