diff options
| author | gbrandl <devnull@localhost> | 2007-05-03 18:23:03 +0200 |
|---|---|---|
| committer | gbrandl <devnull@localhost> | 2007-05-03 18:23:03 +0200 |
| commit | e130dbff2eb591c7cdca4a0bef90b63502cd3d4e (patch) | |
| tree | fcb7f3140464f1be96ff5a119c154b3ace677df4 /pygments/styles | |
| parent | 2af8e713b4d89c8961c419db4818f11d43030643 (diff) | |
| download | pygments-e130dbff2eb591c7cdca4a0bef90b63502cd3d4e.tar.gz | |
[svn] Add whitespace filter. Add a few more filter unit tests.
Diffstat (limited to 'pygments/styles')
| -rw-r--r-- | pygments/styles/autumn.py | 80 | ||||
| -rw-r--r-- | pygments/styles/borland.py | 4 | ||||
| -rw-r--r-- | pygments/styles/colorful.py | 4 | ||||
| -rw-r--r-- | pygments/styles/default.py | 3 | ||||
| -rw-r--r-- | pygments/styles/emacs.py | 3 | ||||
| -rw-r--r-- | pygments/styles/friendly.py | 3 | ||||
| -rw-r--r-- | pygments/styles/fruity.py | 3 | ||||
| -rw-r--r-- | pygments/styles/manni.py | 3 | ||||
| -rw-r--r-- | pygments/styles/murphy.py | 3 | ||||
| -rw-r--r-- | pygments/styles/native.py | 3 | ||||
| -rw-r--r-- | pygments/styles/pastie.py | 3 | ||||
| -rw-r--r-- | pygments/styles/perldoc.py | 3 | ||||
| -rw-r--r-- | pygments/styles/trac.py | 3 |
13 files changed, 67 insertions, 51 deletions
diff --git a/pygments/styles/autumn.py b/pygments/styles/autumn.py index 4508db17..b0862e41 100644 --- a/pygments/styles/autumn.py +++ b/pygments/styles/autumn.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class AutumnStyle(Style): @@ -22,42 +22,44 @@ class AutumnStyle(Style): default_style = "" styles = { - Comment: "italic #aaaaaa", - Comment.Preproc: "noitalic #4c8317", - Comment.Special: "italic #0000aa", - - Keyword: "#0000aa", - Keyword.Type: "#00aaaa", - - Operator.Word: "#0000aa", - - Name.Builtin: "#00aaaa", - Name.Function: "#00aa00", - Name.Class: "underline #00aa00", - Name.Namespace: "underline #00aaaa", - Name.Variable: "#aa0000", - Name.Constant: "#aa0000", - Name.Entity: "bold #800", - Name.Attribute: "#1e90ff", - Name.Tag: "bold #1e90ff", - Name.Decorator: "#888888", - - String: "#aa5500", - String.Symbol: "#0000aa", - String.Regex: "#009999", - - Number: "#009999", - - Generic.Heading: "bold #000080", - Generic.Subheading: "bold #800080", - Generic.Deleted: "#aa0000", - Generic.Inserted: "#00aa00", - Generic.Error: "#aa0000", - Generic.Emph: "italic", - Generic.Strong: "bold", - Generic.Prompt: "#555555", - Generic.Output: "#888888", - Generic.Traceback: "#aa0000", - - Error: "#F00 bg:#FAA" + Whitespace: '#bbbbbb', + + Comment: 'italic #aaaaaa', + Comment.Preproc: 'noitalic #4c8317', + Comment.Special: 'italic #0000aa', + + Keyword: '#0000aa', + Keyword.Type: '#00aaaa', + + Operator.Word: '#0000aa', + + Name.Builtin: '#00aaaa', + Name.Function: '#00aa00', + Name.Class: 'underline #00aa00', + Name.Namespace: 'underline #00aaaa', + Name.Variable: '#aa0000', + Name.Constant: '#aa0000', + Name.Entity: 'bold #800', + Name.Attribute: '#1e90ff', + Name.Tag: 'bold #1e90ff', + Name.Decorator: '#888888', + + String: '#aa5500', + String.Symbol: '#0000aa', + String.Regex: '#009999', + + Number: '#009999', + + Generic.Heading: 'bold #000080', + Generic.Subheading: 'bold #800080', + Generic.Deleted: '#aa0000', + Generic.Inserted: '#00aa00', + Generic.Error: '#aa0000', + Generic.Emph: 'italic', + Generic.Strong: 'bold', + Generic.Prompt: '#555555', + Generic.Output: '#888888', + Generic.Traceback: '#aa0000', + + Error: '#F00 bg:#FAA' } diff --git a/pygments/styles/borland.py b/pygments/styles/borland.py index 696178d3..5763073b 100644 --- a/pygments/styles/borland.py +++ b/pygments/styles/borland.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class BorlandStyle(Style): @@ -22,6 +22,8 @@ class BorlandStyle(Style): default_style = '' styles = { + Whitespace: '#bbbbbb', + Comment: 'italic #008800', Comment.Preproc: 'noitalic', Comment.Special: 'noitalic bold', diff --git a/pygments/styles/colorful.py b/pygments/styles/colorful.py index 16f084e6..83988291 100644 --- a/pygments/styles/colorful.py +++ b/pygments/styles/colorful.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class ColorfulStyle(Style): @@ -22,6 +22,8 @@ class ColorfulStyle(Style): default_style = "" styles = { + Whitespace: "#bbbbbb", + Comment: "#888", Comment.Preproc: "#579", Comment.Special: "bold #cc0000", diff --git a/pygments/styles/default.py b/pygments/styles/default.py index bfa40099..b66d4c95 100644 --- a/pygments/styles/default.py +++ b/pygments/styles/default.py @@ -12,7 +12,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class DefaultStyle(Style): @@ -24,6 +24,7 @@ class DefaultStyle(Style): default_style = "" styles = { + Whitespace: "#bbbbbb", Comment: "italic #408080", Comment.Preproc: "noitalic #BC7A00", diff --git a/pygments/styles/emacs.py b/pygments/styles/emacs.py index cf7b2dc8..c27268b8 100644 --- a/pygments/styles/emacs.py +++ b/pygments/styles/emacs.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class EmacsStyle(Style): @@ -23,6 +23,7 @@ class EmacsStyle(Style): default_style = "" styles = { + Whitespace: "#bbbbbb", Comment: "italic #008800", Comment.Preproc: "noitalic", Comment.Special: "noitalic bold", diff --git a/pygments/styles/friendly.py b/pygments/styles/friendly.py index b1e95037..95ee3b37 100644 --- a/pygments/styles/friendly.py +++ b/pygments/styles/friendly.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class FriendlyStyle(Style): @@ -23,6 +23,7 @@ class FriendlyStyle(Style): default_style = "" styles = { + Whitespace: "#bbbbbb", Comment: "italic #60a0b0", Comment.Preproc: "noitalic #007020", Comment.Special: "noitalic bg:#fff0f0", diff --git a/pygments/styles/fruity.py b/pygments/styles/fruity.py index ba1f388a..95fbcc3e 100644 --- a/pygments/styles/fruity.py +++ b/pygments/styles/fruity.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Token, Comment, Name, Keyword, \ - Generic, Number, String + Generic, Number, String, Whitespace class FruityStyle(Style): """ @@ -21,6 +21,7 @@ class FruityStyle(Style): background_color = '#111111' styles = { + Whitespace: '#888888', Token: '#ffffff', Generic.Output: '#444444 bg:#222222', Keyword: '#fb660a bold', diff --git a/pygments/styles/manni.py b/pygments/styles/manni.py index bdc979e2..c160f873 100644 --- a/pygments/styles/manni.py +++ b/pygments/styles/manni.py @@ -14,7 +14,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class ManniStyle(Style): @@ -25,6 +25,7 @@ class ManniStyle(Style): background_color = '#f0f3f3' styles = { + Whitespace: '#bbbbbb', Comment: 'italic #0099FF', Comment.Preproc: 'noitalic #009999', Comment.Special: 'bold', diff --git a/pygments/styles/murphy.py b/pygments/styles/murphy.py index 06cc795b..5152fe68 100644 --- a/pygments/styles/murphy.py +++ b/pygments/styles/murphy.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class MurphyStyle(Style): @@ -22,6 +22,7 @@ class MurphyStyle(Style): default_style = "" styles = { + Whitespace: "#bbbbbb", Comment: "#666 italic", Comment.Preproc: "#579 noitalic", Comment.Special: "#c00 bold", diff --git a/pygments/styles/native.py b/pygments/styles/native.py index c9b290b0..76021a53 100644 --- a/pygments/styles/native.py +++ b/pygments/styles/native.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic, Token + Number, Operator, Generic, Token, Whitespace class NativeStyle(Style): @@ -23,6 +23,7 @@ class NativeStyle(Style): styles = { Token: '#d0d0d0', + Whitespace: '#666666', Comment: 'italic #999999', Comment.Preproc: 'noitalic bold #cd2828', diff --git a/pygments/styles/pastie.py b/pygments/styles/pastie.py index 49ab9cee..b0332252 100644 --- a/pygments/styles/pastie.py +++ b/pygments/styles/pastie.py @@ -13,7 +13,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class PastieStyle(Style): @@ -24,6 +24,7 @@ class PastieStyle(Style): default_style = '' styles = { + Whitespace: '#bbbbbb', Comment: '#888888', Comment.Preproc: 'bold #cc0000', Comment.Special: 'bg:#fff0f0 bold #cc0000', diff --git a/pygments/styles/perldoc.py b/pygments/styles/perldoc.py index 6ce06624..91e63074 100644 --- a/pygments/styles/perldoc.py +++ b/pygments/styles/perldoc.py @@ -13,7 +13,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class PerldocStyle(Style): @@ -25,6 +25,7 @@ class PerldocStyle(Style): default_style = '' styles = { + Whitespace: '#bbbbbb', Comment: '#228B22', Comment.Preproc: '#1e889b', Comment.Special: '#8B008B bold', diff --git a/pygments/styles/trac.py b/pygments/styles/trac.py index 0e32986f..d6bd4cf1 100644 --- a/pygments/styles/trac.py +++ b/pygments/styles/trac.py @@ -11,7 +11,7 @@ from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ - Number, Operator, Generic + Number, Operator, Generic, Whitespace class TracStyle(Style): @@ -22,6 +22,7 @@ class TracStyle(Style): default_style = '' styles = { + Whitespace: '#bbbbbb', Comment: 'italic #999988', Comment.Preproc: 'bold noitalic #999999', Comment.Special: 'bold #999999', |
