home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / mac / vim55rt.sit / runtime / syntax / help.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  2.3 KB  |  71 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:    Vim help file
  3. " Maintainer:    Bram Moolenaar (Bram@vim.org)
  4. " Last change:    1999 Aug 18
  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 helpOption        "'t_..'"
  21. syn match helpHeader        ".*\~$"me=e-1 nextgroup=helpIgnore
  22. syn match helpIgnore        "." contained
  23. syn keyword helpNote        note
  24. syn match helpSpecial        "\<N\>"
  25. syn match helpSpecial        "(N\>"ms=s+1
  26. syn match helpSpecial        "\[N]"
  27. " avoid highlighting N  N in help.txt
  28. syn match helpSpecial        "N  N"he=s+1
  29. syn match helpSpecial        "Nth"me=e-2
  30. syn match helpSpecial        "N-1"me=e-2
  31. syn match helpSpecial        "{[-a-zA-Z0-9'":%#=[\]<>.]\+}"
  32. syn match helpSpecial        "\s\[[-a-zA-Z0-9_]\{2,}]"ms=s+1
  33. syn match helpSpecial        "<[-a-zA-Z0-9_]\+>"
  34. syn match helpSpecial        "<[SCM]-.>"
  35. syn match helpSpecial        "\[range]"
  36. syn match helpSpecial        "\[line]"
  37. syn match helpSpecial        "\[count]"
  38. syn match helpSpecial        "\[offset]"
  39. syn match helpSpecial        "\[cmd]"
  40. syn match helpSpecial        "\[num]"
  41. syn match helpSpecial        "\[+num]"
  42. syn match helpSpecial        "\[-num]"
  43. syn match helpSpecial        "CTRL-."
  44. syn match helpSpecial        "CTRL-Break"
  45. syn match helpSpecial        "CTRL-{char}"
  46. syn region helpNotVi        start="{Vi[: ]" start="{not" start="{only" end="}" contains=helpLeadBlank,helpHyperTextJump
  47. syn match helpLeadBlank        "^\s\+"
  48.  
  49. if !exists("did_help_syntax_inits")
  50.   let did_help_syntax_inits = 1
  51.  
  52.   hi link helpExampleStart    helpIgnore
  53.   hi link helpIgnore        Ignore
  54.   hi link helpHyperTextJump    Subtitle
  55.   hi link helpHyperTextEntry    String
  56.   hi link helpHeadline        Statement
  57.   hi link helpHeader        PreProc
  58.   hi link helpSectionDelim    PreProc
  59.   hi link helpVim        Identifier
  60.   hi link helpExample        Comment
  61.   hi link helpOption        Type
  62.   hi link helpNotVi        Special
  63.   hi link helpSpecial        Special
  64.   hi link helpNote        Todo
  65.   hi link Subtitle        Identifier
  66. endif
  67.  
  68. let b:current_syntax = "help"
  69.  
  70. " vim: ts=8
  71.