summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-03-08 07:23:14 +0100
committerGeorg Brandl <georg@python.org>2015-03-08 07:23:14 +0100
commit0064569c71402121242a09d5e5cb3eddf1ebd6d6 (patch)
tree4902b6eb4d213da65e2a93c3ec4b9888b435fda0
parent25dc0c1a29cef7dac73f9e56f2ffb806789ed13f (diff)
downloadpygments-0064569c71402121242a09d5e5cb3eddf1ebd6d6.tar.gz
Changelog for lovelace style.
-rw-r--r--AUTHORS1
-rw-r--r--CHANGES4
-rw-r--r--pygments/styles/lovelace.py5
3 files changed, 8 insertions, 2 deletions
diff --git a/AUTHORS b/AUTHORS
index 1fade549..4fa7e0da 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -136,6 +136,7 @@ Other contributors, listed alphabetically, are:
* Andre Roberge -- Tango style
* Konrad Rudolph -- LaTeX formatter enhancements
* Mario Ruggier -- Evoque lexers
+* Miikka Salminen -- Lovelace style, lexer enhancements
* Stou Sandalski -- NumPy, FORTRAN, tcsh and XSLT lexers
* Matteo Sasso -- Common Lisp lexer
* Joe Schafer -- Ada lexer
diff --git a/CHANGES b/CHANGES
index ebc1f95c..6a8aceba 100644
--- a/CHANGES
+++ b/CHANGES
@@ -16,6 +16,10 @@ Version 2.1
* Emacs Lisp (PR#431)
* Arduino (PR#442)
+- Added styles:
+
+ * Lovelace (PR#456)
+
Version 2.0.3
-------------
diff --git a/pygments/styles/lovelace.py b/pygments/styles/lovelace.py
index 1442b28d..31bd5505 100644
--- a/pygments/styles/lovelace.py
+++ b/pygments/styles/lovelace.py
@@ -14,6 +14,7 @@ from pygments.style import Style
from pygments.token import Keyword, Name, Comment, String, Error, \
Number, Operator, Punctuation, Generic, Whitespace
+
class LovelaceStyle(Style):
"""
The style used in Lovelace interactive learning environment. Tries to avoid
@@ -30,7 +31,7 @@ class LovelaceStyle(Style):
_LABEL_CYAN = '#289870'
_EXCEPT_YELLOW = '#908828'
- default_style = '#222222'
+ default_style = '#222222'
styles = {
Whitespace: '#a89028',
@@ -48,7 +49,7 @@ class LovelaceStyle(Style):
Operator.Word: _OW_PURPLE,
Punctuation: '#888888',
-
+
Name.Attribute: _NAME_GREEN,
Name.Builtin: _NAME_GREEN,
Name.Builtin.Pseudo: 'italic',