sas.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-2023 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. styles = {
  20. Whitespace: '#bbbbbb',
  21. Comment: 'italic #008800',
  22. String: '#800080',
  23. Number: 'bold #2c8553',
  24. Other: 'bg:#ffffe0',
  25. Keyword: '#2c2cff',
  26. Keyword.Reserved: 'bold #353580',
  27. Keyword.Constant: 'bold',
  28. Name.Builtin: '#2c2cff',
  29. Name.Function: 'bold italic',
  30. Name.Variable: 'bold #2c2cff',
  31. Generic: '#2c2cff',
  32. Generic.Emph: '#008800',
  33. Generic.Error: '#d30202',
  34. Error: 'bg:#e3d2d2 #a61717'
  35. }