autumn.py 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.autumn
  4. ~~~~~~~~~~~~~~~~~~~~~~
  5. A colorful style, inspired by the terminal highlighting style.
  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
  12. class AutumnStyle(Style):
  13. """
  14. A colorful style, inspired by the terminal highlighting style.
  15. """
  16. default_style = ""
  17. styles = {
  18. Whitespace: '#bbbbbb',
  19. Comment: 'italic #aaaaaa',
  20. Comment.Preproc: 'noitalic #4c8317',
  21. Comment.Special: 'italic #0000aa',
  22. Keyword: '#0000aa',
  23. Keyword.Type: '#00aaaa',
  24. Operator.Word: '#0000aa',
  25. Name.Builtin: '#00aaaa',
  26. Name.Function: '#00aa00',
  27. Name.Class: 'underline #00aa00',
  28. Name.Namespace: 'underline #00aaaa',
  29. Name.Variable: '#aa0000',
  30. Name.Constant: '#aa0000',
  31. Name.Entity: 'bold #800',
  32. Name.Attribute: '#1e90ff',
  33. Name.Tag: 'bold #1e90ff',
  34. Name.Decorator: '#888888',
  35. String: '#aa5500',
  36. String.Symbol: '#0000aa',
  37. String.Regex: '#009999',
  38. Number: '#009999',
  39. Generic.Heading: 'bold #000080',
  40. Generic.Subheading: 'bold #800080',
  41. Generic.Deleted: '#aa0000',
  42. Generic.Inserted: '#00aa00',
  43. Generic.Error: '#aa0000',
  44. Generic.Emph: 'italic',
  45. Generic.Strong: 'bold',
  46. Generic.Prompt: '#555555',
  47. Generic.Output: '#888888',
  48. Generic.Traceback: '#aa0000',
  49. Error: '#F00 bg:#FAA'
  50. }