colors.py 1.2 KB

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. from pygments.style import Style
  3. from pygments.token import Name, Comment, String, Number, Operator, Whitespace
  4. class CMakeTemplateStyle(Style):
  5. """
  6. for more token names, see pygments/styles.default
  7. """
  8. background_color = "#f8f8f8"
  9. default_style = ""
  10. styles = {
  11. Whitespace: "#bbbbbb",
  12. Comment: "italic #408080",
  13. Operator: "#555555",
  14. String: "#217A21",
  15. Number: "#105030",
  16. Name.Builtin: "#333333", # anything lowercase
  17. Name.Function: "#007020", # function
  18. Name.Variable: "#1080B0", # <..>
  19. Name.Tag: "#bb60d5", # ${..}
  20. Name.Constant: "#4070a0", # uppercase only
  21. Name.Entity: "italic #70A020", # @..@
  22. Name.Attribute: "#906060", # paths, URLs
  23. Name.Label: "#A0A000", # anything left over
  24. Name.Exception: "bold #FF0000", # for debugging only
  25. }