native.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. """
  2. pygments.styles.native
  3. ~~~~~~~~~~~~~~~~~~~~~~
  4. pygments version of my "native" vim theme.
  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, 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 #999999',
  22. Comment.Preproc: 'noitalic bold #cd2828',
  23. Comment.Special: 'noitalic bold #e50808 bg:#520000',
  24. Keyword: 'bold #6ab825',
  25. Keyword.Pseudo: 'nobold',
  26. Operator.Word: 'bold #6ab825',
  27. String: '#ed9d13',
  28. String.Other: '#ffa500',
  29. Number: '#3677a9',
  30. Name.Builtin: '#24909d',
  31. Name.Variable: '#40ffff',
  32. Name.Constant: '#40ffff',
  33. Name.Class: 'underline #447fcf',
  34. Name.Function: '#447fcf',
  35. Name.Namespace: 'underline #447fcf',
  36. Name.Exception: '#bbbbbb',
  37. Name.Tag: 'bold #6ab825',
  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.Prompt: '#aaaaaa',
  48. Generic.Output: '#cccccc',
  49. Generic.Traceback: '#d22323',
  50. Error: 'bg:#e3d2d2 #a61717'
  51. }