stata_light.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-2024 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. __all__ = ['StataLightStyle']
  13. class StataLightStyle(Style):
  14. """
  15. Light mode style inspired by Stata's do-file editor. This is not
  16. meant to be a complete style, just for use with Stata.
  17. """
  18. name = 'stata-light'
  19. styles = {
  20. Text: '#111111',
  21. Whitespace: '#bbbbbb',
  22. Error: 'bg:#e3d2d2 #a61717',
  23. String: '#7a2424',
  24. Number: '#2c2cff',
  25. Operator: '',
  26. Name.Function: '#2c2cff',
  27. Name.Other: '#be646c',
  28. Keyword: 'bold #353580',
  29. Keyword.Constant: '',
  30. Comment: 'italic #008800',
  31. Name.Variable: 'bold #35baba',
  32. Name.Variable.Global: 'bold #b5565e',
  33. }