summaryrefslogtreecommitdiff
path: root/runtime/syntax/man.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-20 19:52:53 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-20 19:52:53 +0200
commit2c7f8c574f1f8723d59adca3fec8fb89c41cf8c9 (patch)
treec6ab196227058f59ad6f4cf0dbe1e782b7b715e6 /runtime/syntax/man.vim
parent2c5ed4e3300378ce76c8d9c3818d6f73e5119f68 (diff)
downloadvim-git-2c7f8c574f1f8723d59adca3fec8fb89c41cf8c9.tar.gz
Update runtime files
Diffstat (limited to 'runtime/syntax/man.vim')
-rw-r--r--runtime/syntax/man.vim11
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