Skip to content
Browse files

Improve highlighting for every language I could test before my hands …

…fell off and I had to type this message with my tongue and go to sleep.
  • Loading branch information...
1 parent 7109bb0 commit a2058ae561931bd977a35755dfb794b4217afc0f @Raynes committed Jan 31, 2012
Showing with 29 additions and 20 deletions.
  1. +29 −20 tomorrownightbright.py
View
49 tomorrownightbright.py
@@ -8,7 +8,7 @@
from pygments.style import Style
from pygments.token import Comment, Error, Keyword, Name, Number, Operator, \
- Punctuation, String, Text
+ Punctuation, String, Text, Generic
BACKGROUND = "#000000"
CURRENT_LINE = "#2a2a2a"
@@ -37,23 +37,32 @@ class TomorrownightbrightStyle(Style):
styles = {
- Comment: COMMENT,
- Text: FOREGROUND,
-
- Keyword: PURPLE,
- Operator.Word: '',
-
- String: GREEN,
- String.Char: FOREGROUND,
-
- Name.Builtin: RED,
- Name.Variable: '',
- Name.Constant: GREEN,
- Name.Class: BLUE,
- Name.Function: BLUE,
- Name.Namespace: BLUE,
- #Name.Exception: '',
- Name.Tag: BLUE,
- #Name.Attribute: '',
- Name.Decorator: AQUA,
+ Comment: COMMENT,
+ Text: FOREGROUND,
+
+ Keyword: PURPLE,
+ Keyword.Type: YELLOW,
+ Operator.Word: '',
+
+ String: GREEN,
+ String.Char: FOREGROUND,
+
+ Name.Builtin: RED,
+ Name.Variable: '',
+ Name.Variable.Instance: RED,
+ Name.Constant: GREEN,
+ Name.Class: YELLOW,
+ Name.Function: BLUE,
+ Name.Namespace: YELLOW,
+ Name.Exception: RED,
+ Name.Tag: BLUE,
+ #Name.Attribute: '',
+ Name.Decorator: AQUA,
+
+ Generic.Deleted: RED,
+ Generic.Inserted: GREEN,
+ Generic.Heading: "bold " + FOREGROUND,
+ Generic.Subheading: "bold " + AQUA,
+ Generic.Prompt: "bold " + COMMENT
+
}

0 comments on commit a2058ae

Please sign in to comment.
Something went wrong with that request. Please try again.