vim.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. """
  2. pygments.styles.vim
  3. ~~~~~~~~~~~~~~~~~~~
  4. A highlighting style for Pygments, inspired by vim.
  5. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.style import Style
  9. from pygments.token import Keyword, Name, Comment, String, Error, \
  10. Number, Operator, Generic, Whitespace, Token
  11. class VimStyle(Style):
  12. """
  13. Styles somewhat like vim 7.0
  14. """
  15. background_color = "#000000"
  16. highlight_color = "#222222"
  17. default_style = "#cccccc"
  18. styles = {
  19. Token: "#cccccc",
  20. Whitespace: "",
  21. Comment: "#000080",
  22. Comment.Preproc: "",
  23. Comment.Special: "bold #cd0000",
  24. Keyword: "#cdcd00",
  25. Keyword.Declaration: "#00cd00",
  26. Keyword.Namespace: "#cd00cd",
  27. Keyword.Pseudo: "",
  28. Keyword.Type: "#00cd00",
  29. Operator: "#3399cc",
  30. Operator.Word: "#cdcd00",
  31. Name: "",
  32. Name.Class: "#00cdcd",
  33. Name.Builtin: "#cd00cd",
  34. Name.Exception: "bold #666699",
  35. Name.Variable: "#00cdcd",
  36. String: "#cd0000",
  37. Number: "#cd00cd",
  38. Generic.Heading: "bold #000080",
  39. Generic.Subheading: "bold #800080",
  40. Generic.Deleted: "#cd0000",
  41. Generic.Inserted: "#00cd00",
  42. Generic.Error: "#FF0000",
  43. Generic.Emph: "italic",
  44. Generic.Strong: "bold",
  45. Generic.Prompt: "bold #000080",
  46. Generic.Output: "#888",
  47. Generic.Traceback: "#04D",
  48. Error: "border:#FF0000"
  49. }