home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 February / OpenLinux 2.3 CD.iso / live / usr / share / vim / syntax / help.vim < prev    next >
Encoding:
Text File  |  1999-08-10  |  1.4 KB  |  47 lines

  1. " Vim syntax file
  2. " Language:    Vim help file
  3. " Maintainer:    Bram Moolenaar (Bram@vim.org)
  4. " Last change:    1998 January 11
  5.  
  6. " Remove any old syntax stuff hanging around
  7. syn clear
  8.  
  9. syn match helpHeadline        "^[A-Z ]\+[ ]\+\*"me=e-1
  10. syn match helpSectionDelim    "^=\{3,}"
  11. syn match helpSectionDelim    "^-\{3,}"
  12. syn match helpExampleStart    "^>" nextgroup=helpExample
  13. syn match helpExample        ".*" contained
  14. syn match helpHyperTextJump    "|[#-)!+-~]\+|"
  15. syn match helpHyperTextEntry    "\*[#-)!+-~]\+\*\s"he=e-1
  16. syn match helpHyperTextEntry    "\*[#-)!+-~]\+\*$"
  17. syn match helpVim        "Vim version [0-9.a-z]\+"
  18. syn match helpVim        "VIM REFERENCE.*"
  19. syn match helpOption        "'[a-z]\{2,\}'"
  20. syn match helpHeader        ".*\~$"me=e-1 nextgroup=helpIgnore
  21. syn match helpIgnore        "." contained
  22. syn keyword helpNote        note
  23. syn region helpNotVi        start="{Vi[: ]" start="{not" start="{only" end="}" contains=helpLeadBlank
  24. syn match helpLeadBlank        "^\s\+"
  25.  
  26. if !exists("did_help_syntax_inits")
  27.   let did_help_syntax_inits = 1
  28.  
  29.   hi link helpExampleStart    helpIgnore
  30.   hi link helpIgnore        Ignore
  31.   hi link helpHyperTextJump    Subtitle
  32.   hi link helpHyperTextEntry    String
  33.   hi link helpHeadline        Statement
  34.   hi link helpHeader        PreProc
  35.   hi link helpSectionDelim    PreProc
  36.   hi link helpVim        Identifier
  37.   hi link helpExample        Comment
  38.   hi link helpOption        Type
  39.   hi link helpNotVi        Special
  40.   hi link helpNote        Todo
  41.   hi link Subtitle        Identifier
  42. endif
  43.  
  44. let b:current_syntax = "help"
  45.  
  46. " vim: ts=8
  47.