vim.py 1.9 KB

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