summaryrefslogtreecommitdiff
path: root/runtime/syntax/help.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/syntax/help.vim')
-rw-r--r--runtime/syntax/help.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index d3002a57..6bd8dd09 100644
--- a/runtime/syntax/help.vim
+++ b/runtime/syntax/help.vim
@@ -1,13 +1,16 @@
" Vim syntax file
" Language: Vim help file
" Maintainer: Bram Moolenaar (Bram@vim.org)
-" Last Change: 2011 Dec 03
+" Last Change: 2012 Jan 08
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
syn match helpHeadline "^[-A-Z .][-A-Z0-9 .()]*[ \t]\+\*"me=e-1
syn match helpSectionDelim "^=\{3,}.*===$"
syn match helpSectionDelim "^-\{3,}.*--$"
@@ -196,4 +199,6 @@ hi def link helpURL String
let b:current_syntax = "help"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: ts=8 sw=2