native.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. """
  2. pygments.styles.native
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. pygments version of my "native" vim theme.
  5. :copyright: Copyright 2006-2023 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, Token, Whitespace
  11. class NativeStyle(Style):
  12. """
  13. Pygments version of the "native" vim theme.
  14. """
  15. background_color = '#202020'
  16. highlight_color = '#404040'
  17. line_number_color = '#aaaaaa'
  18. styles = {
  19. Token: '#d0d0d0',
  20. Whitespace: '#666666',
  21. Comment: 'italic #ababab',
  22. Comment.Preproc: 'noitalic bold #ff3a3a',
  23. Comment.Special: 'noitalic bold #e50808 bg:#520000',
  24. Keyword: 'bold #6ebf26',
  25. Keyword.Pseudo: 'nobold',
  26. Operator.Word: 'bold #6ebf26',
  27. String: '#ed9d13',
  28. String.Other: '#ffa500',
  29. Number: '#51b2fd',
  30. Name.Builtin: '#2fbccd',
  31. Name.Variable: '#40ffff',
  32. Name.Constant: '#40ffff',
  33. Name.Class: 'underline #71adff',
  34. Name.Function: '#71adff',
  35. Name.Namespace: 'underline #71adff',
  36. Name.Exception: '#bbbbbb',
  37. Name.Tag: 'bold #6ebf26',
  38. Name.Attribute: '#bbbbbb',
  39. Name.Decorator: '#ffa500',
  40. Generic.Heading: 'bold #ffffff',
  41. Generic.Subheading: 'underline #ffffff',
  42. Generic.Deleted: '#d22323',
  43. Generic.Inserted: '#589819',
  44. Generic.Error: '#d22323',
  45. Generic.Emph: 'italic',
  46. Generic.Strong: 'bold',
  47. Generic.EmphStrong: 'bold italic',
  48. Generic.Prompt: '#aaaaaa',
  49. Generic.Output: '#cccccc',
  50. Generic.Traceback: '#d22323',
  51. Error: 'bg:#e3d2d2 #a61717'
  52. }