2018-10-10 07:39:17 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from pygments.style import Style
|
|
|
|
from pygments.token import Name, Comment, String, Number, Operator, Whitespace
|
|
|
|
|
|
|
|
class CMakeTemplateStyle(Style):
|
|
|
|
"""
|
|
|
|
for more token names, see pygments/styles.default
|
|
|
|
"""
|
|
|
|
|
|
|
|
background_color = "#f8f8f8"
|
|
|
|
default_style = ""
|
|
|
|
|
|
|
|
styles = {
|
|
|
|
Whitespace: "#bbbbbb",
|
|
|
|
Comment: "italic #408080",
|
2019-01-09 19:01:30 +00:00
|
|
|
Operator: "#555555",
|
2018-10-10 07:39:17 +00:00
|
|
|
String: "#217A21",
|
|
|
|
Number: "#105030",
|
2019-01-09 19:01:30 +00:00
|
|
|
Name.Builtin: "#333333", # anything lowercase
|
|
|
|
Name.Function: "#007020", # function
|
2018-10-10 07:39:17 +00:00
|
|
|
Name.Variable: "#1080B0", # <..>
|
2019-01-09 19:01:30 +00:00
|
|
|
Name.Tag: "#bb60d5", # ${..}
|
|
|
|
Name.Constant: "#4070a0", # uppercase only
|
2018-10-10 07:39:17 +00:00
|
|
|
Name.Entity: "italic #70A020", # @..@
|
|
|
|
Name.Attribute: "#906060", # paths, URLs
|
|
|
|
Name.Label: "#A0A000", # anything left over
|
|
|
|
Name.Exception: "bold #FF0000", # for debugging only
|
|
|
|
}
|