diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-20 19:52:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-20 19:52:53 +0200 |
commit | 2c7f8c574f1f8723d59adca3fec8fb89c41cf8c9 (patch) | |
tree | c6ab196227058f59ad6f4cf0dbe1e782b7b715e6 /runtime/syntax/man.vim | |
parent | 2c5ed4e3300378ce76c8d9c3818d6f73e5119f68 (diff) | |
download | vim-git-2c7f8c574f1f8723d59adca3fec8fb89c41cf8c9.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/syntax/man.vim')
-rw-r--r-- | runtime/syntax/man.vim | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/syntax/man.vim b/runtime/syntax/man.vim index 77675c5d2..5bdba8621 100644 --- a/runtime/syntax/man.vim +++ b/runtime/syntax/man.vim @@ -3,7 +3,7 @@ " Maintainer: SungHyun Nam <goweol@gmail.com> " Previous Maintainer: Gautam H. Mudunuri <gmudunur@informatica.com> " Version Info: -" Last Change: 2015 Nov 24 +" Last Change: 2020 Apr 15 " Additional highlighting by Johannes Tanzler <johannes.tanzler@aon.at>: " * manSubHeading @@ -18,8 +18,11 @@ endif runtime! syntax/ctrlh.vim syn case ignore + +syn match manHeader '\%1l.*' +exe 'syn match manFooter ''\%' . line('$') . 'l.*''' + syn match manReference "\f\+([1-9][a-z]\=)" -syn match manTitle "^\f\+([0-9]\+[a-z]\=).*" syn match manSectionHeading "^[a-z][a-z -]*[a-z]$" syn match manSubHeading "^\s\{3\}[a-z][a-z -]*[a-z]$" syn match manOptionDesc "^\s*[+-][a-z0-9]\S*" @@ -36,7 +39,9 @@ endif " Define the default highlighting. " Only when an item doesn't have highlighting yet -hi def link manTitle Title +hi def link manHeader Title +hi def link manFooter PreProc + hi def link manSectionHeading Statement hi def link manOptionDesc Constant hi def link manLongOptionDesc Constant |