sas.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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-2024 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. __all__ = ['SasStyle']
  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. name = 'sas'
  21. styles = {
  22. Whitespace: '#bbbbbb',
  23. Comment: 'italic #008800',
  24. String: '#800080',
  25. Number: 'bold #2c8553',
  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. }