sas.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.sas
  4. ~~~~~~~~~~~~~~~~~~~
  5. Style inspired by SAS' enhanced program editor. Note This is not
  6. meant to be a complete style. It's merely meant to mimic SAS'
  7. program editor syntax highlighting.
  8. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  9. :license: BSD, see LICENSE for details.
  10. """
  11. from pygments.style import Style
  12. from pygments.token import Keyword, Name, Comment, String, Error, \
  13. Number, Other, Whitespace, Generic
  14. class SasStyle(Style):
  15. """
  16. Style inspired by SAS' enhanced program editor. Note This is not
  17. meant to be a complete style. It's merely meant to mimic SAS'
  18. program editor syntax highlighting.
  19. """
  20. default_style = ''
  21. styles = {
  22. Whitespace: '#bbbbbb',
  23. Comment: 'italic #008800',
  24. String: '#800080',
  25. Number: 'bold #2e8b57',
  26. Other: 'bg:#ffffe0',
  27. Keyword: '#2c2cff',
  28. Keyword.Reserved: 'bold #353580',
  29. Keyword.Constant: 'bold',
  30. Name.Builtin: '#2c2cff',
  31. Name.Function: 'bold italic',
  32. Name.Variable: 'bold #2c2cff',
  33. Generic: '#2c2cff',
  34. Generic.Emph: '#008800',
  35. Generic.Error: '#d30202',
  36. Error: 'bg:#e3d2d2 #a61717'
  37. }