Skip to content

Commit

Permalink
implement PR vim-utils#21
Browse files Browse the repository at this point in the history
  • Loading branch information
njhoffman committed Nov 20, 2021
1 parent 30c7943 commit 9c34bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syntax/man.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ syntax match manHeaderFile '\s\zs<\f\+\.h>\ze\(\W\|$\)'
syntax match manURL `\v<(((https?|ftp|gopher)://|(mailto|file|news):)[^' <>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' <>"]+)[a-zA-Z0-9/]`
syntax match manEmail '<\?[a-zA-Z0-9_.+-]\+@[a-zA-Z0-9-]\+\.[a-zA-Z0-9-.]\+>\?'
syntax match manHighlight +`.\{-}''\?+
syntax match manOptions '\v[^a-z0-9]\zs-{1,2}[[:alnum:]-_?]+\ze'

" below syntax elements valid for manpages 2 & 3 only
if getline(1) =~ '^\(\f\|:\)\+([23][px]\?)'
Expand Down Expand Up @@ -46,6 +47,7 @@ hi def link manFile Identifier
hi def link manEnvVarFile Identifier
hi def link manEnvVar Identifier
hi def link manHighlight Statement
hi def link manOptions Constant

let b:current_syntax = 'man'

Expand Down

0 comments on commit 9c34bf1

Please sign in to comment.