stata_light.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. """
  2. pygments.styles.stata_light
  3. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4. Light Style inspired by Stata's do-file editor. Note this is not
  5. meant to be a complete style, just for Stata's file formats.
  6. :copyright: Copyright 2006-2021 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, Whitespace, Text
  12. class StataLightStyle(Style):
  13. """
  14. Light mode style inspired by Stata's do-file editor. This is not
  15. meant to be a complete style, just for use with Stata.
  16. """
  17. default_style = ''
  18. styles = {
  19. Text: '#111111',
  20. Whitespace: '#bbbbbb',
  21. Error: 'bg:#e3d2d2 #a61717',
  22. String: '#7a2424',
  23. Number: '#2c2cff',
  24. Operator: '',
  25. Name.Function: '#2c2cff',
  26. Name.Other: '#be646c',
  27. Keyword: 'bold #353580',
  28. Keyword.Constant: '',
  29. Comment: 'italic #008800',
  30. Name.Variable: 'bold #35baba',
  31. Name.Variable.Global: 'bold #b5565e',
  32. }