native.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.native
  4. ~~~~~~~~~~~~~~~~~~~~~~
  5. pygments version of my "native" vim theme.
  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, Token, Whitespace
  12. class NativeStyle(Style):
  13. """
  14. Pygments version of the "native" vim theme.
  15. """
  16. background_color = '#202020'
  17. highlight_color = '#404040'
  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. }