native.py 2.0 KB

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