" Vim syntax file
" Language:	Vim help file
" Maintainer:	?
" Last change:	1997 April 20

" Remove any old syntax stuff hanging around
syntax clear

syntax match helpHeadline       "^[.0-9]\+[ ][^     ]\+[    ]\+\*"E-1
syntax match helpHeadline       "^[A-Z ]\+[ ]\+\*"E-1
syntax match helpSectionDelim   "^=\{3,}"
syntax match helpSectionDelim   "^-\{3,}"
syntax match helpHyperTextJump  "|[#-)!+-~]\+|"
syntax match helpHyperTextEntry "\*[#-)!+-~]\+\*[ 	]"e-1
syntax match helpHyperTextEntry "\*[#-)!+-~]\+\*$"
syntax match helpVim            "Vim version [0-9.a-z]\+"
syntax match helpVim            "VIM REFERENCE.*"
syntax match helpOption		"'[a-z]\{2,\}'"
syntax keyword helpNote		note
syntax region helpNotVi		start="{not" end="}"
syntax region helpNotVi		start="{Vi[: ]" end="}"

if !exists("did_help_syntax_inits")
  let did_help_syntax_inits = 1
  highlight link helpHyperTextJump	Comment
  highlight link helpHyperTextEntry	String
  highlight link helpHeadline		Statement
  highlight link helpSectionDelim	PreProc
  highlight link helpVim			Identifier
  highlight link helpOption			Type
  highlight link helpNotVi			Special
  highlight link helpNote			Todo
endif
