diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-09-03 14:01:04 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-09-03 14:01:04 -0400 |
commit | 2f6d3e599b3659dff3d62ecfc31066e93523e169 (patch) | |
tree | 84beea66a6e98ce48cd4921e42b4770e4f16bc03 /runtime/syntax/man.vim | |
parent | 94dfb6cea24180592af5c495dd9e8abf61d5735f (diff) | |
parent | c9e39f8227e320e156c92ee5192223304a9f1761 (diff) | |
download | rneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.tar.gz rneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.tar.bz2 rneovim-2f6d3e599b3659dff3d62ecfc31066e93523e169.zip |
Merge #5249 'man.vim'
Diffstat (limited to 'runtime/syntax/man.vim')
-rw-r--r-- | runtime/syntax/man.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/syntax/man.vim b/runtime/syntax/man.vim index 5dd41b3af5..4a527dd350 100644 --- a/runtime/syntax/man.vim +++ b/runtime/syntax/man.vim @@ -7,10 +7,10 @@ endif syntax case ignore syntax match manReference display '[^()[:space:]]\+([0-9nx][a-z]*)' -syntax match manSectionHeading display '^\%(\S.*\)\=\S$' +syntax match manSectionHeading display '^\S.*$' syntax match manTitle display '^\%1l.*$' syntax match manSubHeading display '^ \{3\}\S.*$' -syntax match manOptionDesc display '^\s\+\%(+\|--\=\)\S\+' +syntax match manOptionDesc display '^\s\+\%(+\|-\)\S\+' highlight default link manTitle Title highlight default link manSectionHeading Statement @@ -18,7 +18,7 @@ highlight default link manOptionDesc Constant highlight default link manReference PreProc highlight default link manSubHeading Function -if getline(1) =~# '^[^()[:space:]]\+([23].*' +if b:man_sect =~# '^[23]' syntax include @c $VIMRUNTIME/syntax/c.vim syntax match manCFuncDefinition display '\<\h\w*\>\ze\(\s\|\n\)*(' contained syntax region manSynopsis start='^\%( |