xcode.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. """
  2. pygments.styles.xcode
  3. ~~~~~~~~~~~~~~~~~~~~~
  4. Style similar to the `Xcode` default theme.
  5. :copyright: Copyright 2006-2021 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. default_style = ''
  16. styles = {
  17. Comment: '#177500',
  18. Comment.Preproc: '#633820',
  19. String: '#C41A16',
  20. String.Char: '#2300CE',
  21. Operator: '#000000',
  22. Keyword: '#A90D91',
  23. Name: '#000000',
  24. Name.Attribute: '#836C28',
  25. Name.Class: '#3F6E75',
  26. Name.Function: '#000000',
  27. Name.Builtin: '#A90D91',
  28. # In Obj-C code this token is used to colour Cocoa types
  29. Name.Builtin.Pseudo: '#5B269A',
  30. Name.Variable: '#000000',
  31. Name.Tag: '#000000',
  32. Name.Decorator: '#000000',
  33. # Workaround for a BUG here: lexer treats multiline method signatres as labels
  34. Name.Label: '#000000',
  35. Literal: '#1C01CE',
  36. Number: '#1C01CE',
  37. Error: '#000000',
  38. }