murphy.py 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # -*- coding: utf-8 -*-
  2. """
  3. pygments.styles.murphy
  4. ~~~~~~~~~~~~~~~~~~~~~~
  5. Murphy's style from CodeRay.
  6. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
  7. :license: BSD, see LICENSE for details.
  8. """
  9. from pygments.style import Style
  10. from pygments.token import Keyword, Name, Comment, String, Error, \
  11. Number, Operator, Generic, Whitespace
  12. class MurphyStyle(Style):
  13. """
  14. Murphy's style from CodeRay.
  15. """
  16. default_style = ""
  17. styles = {
  18. Whitespace: "#bbbbbb",
  19. Comment: "#666 italic",
  20. Comment.Preproc: "#579 noitalic",
  21. Comment.Special: "#c00 bold",
  22. Keyword: "bold #289",
  23. Keyword.Pseudo: "#08f",
  24. Keyword.Type: "#66f",
  25. Operator: "#333",
  26. Operator.Word: "bold #000",
  27. Name.Builtin: "#072",
  28. Name.Function: "bold #5ed",
  29. Name.Class: "bold #e9e",
  30. Name.Namespace: "bold #0e84b5",
  31. Name.Exception: "bold #F00",
  32. Name.Variable: "#036",
  33. Name.Variable.Instance: "#aaf",
  34. Name.Variable.Class: "#ccf",
  35. Name.Variable.Global: "#f84",
  36. Name.Constant: "bold #5ed",
  37. Name.Label: "bold #970",
  38. Name.Entity: "#800",
  39. Name.Attribute: "#007",
  40. Name.Tag: "#070",
  41. Name.Decorator: "bold #555",
  42. String: "bg:#e0e0ff",
  43. String.Char: "#88F bg:",
  44. String.Doc: "#D42 bg:",
  45. String.Interpol: "bg:#eee",
  46. String.Escape: "bold #666",
  47. String.Regex: "bg:#e0e0ff #000",
  48. String.Symbol: "#fc8 bg:",
  49. String.Other: "#f88",
  50. Number: "bold #60E",
  51. Number.Integer: "bold #66f",
  52. Number.Float: "bold #60E",
  53. Number.Hex: "bold #058",
  54. Number.Oct: "bold #40E",
  55. Generic.Heading: "bold #000080",
  56. Generic.Subheading: "bold #800080",
  57. Generic.Deleted: "#A00000",
  58. Generic.Inserted: "#00A000",
  59. Generic.Error: "#FF0000",
  60. Generic.Emph: "italic",
  61. Generic.Strong: "bold",
  62. Generic.Prompt: "bold #c65d09",
  63. Generic.Output: "#888",
  64. Generic.Traceback: "#04D",
  65. Error: "#F00 bg:#FAA"
  66. }