/* https://github.com/aahan/pygments-github-style */

/*
* White Syntax Colors
* Token objects map to https://github.com/jneen/rouge/wiki/List-of-tokens
*/

$white-highlight-selectors-keyword: (
  "default": (
    "token": "k",
    "bold": true,
  ),
  "constant": (
    "token": "kc",
    "bold": true,
  ),
  "declaration": (
    "token": "kd",
    "bold": true,
  ),
  "namespace": (
    "token": "kn",
    "bold": true,
  ),
  "pseudo": (
    "token": "kp",
    "bold": true,
  ),
  "reserved": (
    "token": "kr",
    "bold": true,
  ),
  "type": (
    "token": "kt",
    "color": #458,
    "bold": true,
  ),
);

$white-highlight-selectors-name: (
  "default": (
    "token": "n",
    "color": #333,
  ),
  "attribute": (
    "token": "na",
    "color": teal,
  ),
  "builtin": (
    "token": "nb",
    "color": #0086b3,
  ),
  "builtin.pseudo": (
    "token": "np",
  ),
  "class": (
    "token": "nc",
    "color": #458,
  ),
  "constant": (
    "token": "no",
    "color": teal,
  ),
  "decorator": (
    "token": "nd",
  ),
  "entity": (
    "token": "ni",
    "color": purple,
  ),
  "exception": (
    "token": "ne",
    "color": #900,
  ),
  "function": (
    "token": "nf",
    "color": #900,
  ),
  "property": (
    "token": "py",
  ),
  "label": (
    "token": "nl",
  ),
  "namespace": (
    "token": "nn",
    "color": #555,
  ),
  "other": (
    "token": "nx",
  ),
  "tag": (
    "token": "nt",
    "color": navy,
  ),
  "variable": (
    "token": "nv",
    "color": navy,
  ),
  "variable.class": (
    "token": "vc",
    "color": navy,
  ),
  "variable.global": (
    "token": "vg",
    "color": navy,
  ),
  "variable.instance": (
    "token": "vi",
    "color": navy,
  ),
);

$white-highlight-selectors-literal: (
  "default": (
    "token": "l",
  ),
  "date": (
    "token": "ld",
  ),
);

$white-highlight-selectors-literal-string: (
  "default": (
    "token": "s",
    "color": #d14,
  ),
  "backtick": (
    "token": "sb",
    "color": #d14,
  ),
  "char": (
    "token": "sc",
    "color": #d14,
  ),
  "doc": (
    "token": "sd",
    "color": #d14,
  ),
  "double": (
    "token": "s2",
    "color": #d14,
  ),
  "escape": (
    "token": "se",
    "color": #d14,
  ),
  "heredoc": (
    "token": "sh",
    "color": #d14,
  ),
  "interpol": (
    "token": "si",
    "color": #d14,
  ),
  "other": (
    "token": "sx",
    "color": #d14,
  ),
  "regex": (
    "token": "sr",
    "color": #009926,
  ),
  "single": (
    "token": "s1",
    "color": #d14,
  ),
  "symbol": (
    "token": "ss",
    "color": #990073,
  ),
);

$white-highlight-selectors-literal-number: (
  "default": (
    "token": "m",
    "color": #099,
  ),
  "float": (
    "token": "mf",
    "color": #099,
  ),
  "hex-number": (
    "token": "mh",
    "color": #099,
  ),
  "integer": (
    "token": "mi",
    "color": #099,
  ),
  "integer.long": (
    "token": "il",
    "color": #099,
  ),
  "oct": (
    "token": "mo",
    "color": #099,
  ),
  "hex-literal": (
    "token": "mx",
  ),
  "bin": (
    "token": "mb",
  )
);

$white-highlight-selectors-comment: (
  "default": (
    "token": "c",
    "color": #998,
    "italic": true,
  ),
  "multiline": (
    "token": "cm",
    "color": #998,
    "italic": true,
  ),
  "preproc": (
    "token": "cp",
    "color": #999,
    "bold": true,
  ),
  "single": (
    "token": "c1",
    "color": #998,
    "italic": true,
  ),
  "special": (
    "token": "cs",
    "color": #999,
    "bold": true,
    "italic": true,
  ),
);

$white-highlight-selectors-generic: (
  "default": (
    "token": "g",
  ),
  "deleted": (
    "token": "gd",
    "color": black,
    "background": #fdd,
    "nested-token": (
      "token": "x",
      "color": black,
      "background": #faa,
    ),
  ),
  "emph": (
    "token": "ge",
    "italic": true,
  ),
  "error": (
    "token": "gr",
    "color": #a00,
  ),
  "heading": (
    "token": "gh",
    "color": #999,
  ),
  "inserted": (
    "token": "gi",
    "color": black,
    "background": #dfd,
    "nested-token": (
      "token": "x",
      "color": black,
      "background": #afa,
    ),
  ),
  "output": (
    "token": "go",
    "color": #888,
  ),
  "prompt": (
    "token": "gp",
    "color": #555,
  ),
  "strong": (
    "token": "gs",
    "bold": true,
  ),
  "subheading": (
    "token": "gu",
    "color": #800080,
    "bold": true,
  ),
  "traceback": (
    "token": "gt",
    "color": #a00,
  ),
  "lineno": (
    "token": "gl",
  )
);

$white-highlight-selectors-misc: (
  "text.whitespace": (
    "token": "w",
    "color": #bbb,
  ),
  "error": (
    "token": "err",
    "color": #a61717,
    "background": #e3d2d2,
  ),
  "other": (
    "token": "x",
  ),
  "operator": (
    "token": "o",
    "bold": true,
  ),
  "operator.word": (
    "token": "ow",
    "bold": true,
  ),
  "punctuation": (
    "token": "p",
  ),
);

$white-highlight-selectors: (
  "keyword": $white-highlight-selectors-keyword,
  "name": $white-highlight-selectors-name,
  "literal": $white-highlight-selectors-literal,
  "literal.string": $white-highlight-selectors-literal-string,
  "literal.number": $white-highlight-selectors-literal-number,
  "comment": $white-highlight-selectors-comment,
  "generic": $white-highlight-selectors-generic,
  "misc": $white-highlight-selectors-misc,
);

$white-highlight-background: white;
