sas.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. """
  2. pygments.styles.sas
  3. ~~~~~~~~~~~~~~~~~~~
  4. Style inspired by SAS' enhanced program editor. Note This is not
  5. meant to be a complete style. It's merely meant to mimic SAS'
  6. program editor syntax highlighting.
  7. :copyright: Copyright 2006-2021 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, Other, Whitespace, Generic
  13. class SasStyle(Style):
  14. """
  15. Style inspired by SAS' enhanced program editor. Note This is not
  16. meant to be a complete style. It's merely meant to mimic SAS'
  17. program editor syntax highlighting.
  18. """
  19. default_style = ''
  20. styles = {
  21. Whitespace: '#bbbbbb',
  22. Comment: 'italic #008800',
  23. String: '#800080',
  24. Number: 'bold #2e8b57',
  25. Other: 'bg:#ffffe0',
  26. Keyword: '#2c2cff',
  27. Keyword.Reserved: 'bold #353580',
  28. Keyword.Constant: 'bold',
  29. Name.Builtin: '#2c2cff',
  30. Name.Function: 'bold italic',
  31. Name.Variable: 'bold #2c2cff',
  32. Generic: '#2c2cff',
  33. Generic.Emph: '#008800',
  34. Generic.Error: '#d30202',
  35. Error: 'bg:#e3d2d2 #a61717'
  36. }