xcode.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. """
  2. pygments.styles.xcode
  3. ~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to the `Xcode` default theme.
  5. :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. from pygments.style import Style
  9. from pygments.token import Keyword, Name, Comment, String, Error, \
  10. Number, Operator, Literal
  11. class XcodeStyle(Style):
  12. """
  13. Style similar to the Xcode default colouring theme.
  14. """
  15. styles = {
  16. Comment: '#177500',
  17. Comment.Preproc: '#633820',
  18. String: '#C41A16',
  19. String.Char: '#2300CE',
  20. Operator: '#000000',
  21. Keyword: '#A90D91',
  22. Name: '#000000',
  23. Name.Attribute: '#836C28',
  24. Name.Class: '#3F6E75',
  25. Name.Function: '#000000',
  26. Name.Builtin: '#A90D91',
  27. # In Obj-C code this token is used to colour Cocoa types
  28. Name.Builtin.Pseudo: '#5B269A',
  29. Name.Variable: '#000000',
  30. Name.Tag: '#000000',
  31. Name.Decorator: '#000000',
  32. # Workaround for a BUG here: lexer treats multiline method signatres as labels
  33. Name.Label: '#000000',
  34. Literal: '#1C01CE',
  35. Number: '#1C01CE',
  36. Error: '#000000',
  37. }