stata_light.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.stata_light
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. Light Style inspired by Stata's do-file editor. Note this is not
  6. meant to be a complete style, just for Stata's file formats.
  7. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  8. :license: BSD, see LICENSE for details.
  9. """
  10. from pygments.style import Style
  11. from pygments.token import Keyword, Name, Comment, String, Error, \
  12. Number, Operator, Whitespace, Text
  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. default_style = ''
  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. }