summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2018-12-16 17:41:09 +0100
committerMatth?us G. Chajdas <dev@anteru.net>2018-12-16 17:41:09 +0100
commit96933283e66f789e09332e7216e7e6e4519845f5 (patch)
tree975394d0212b23d526ccbe5175449295475c2a4f
parent7b32e7ccb5ade830289b0c259df83eab191b0944 (diff)
downloadpygments-96933283e66f789e09332e7216e7e6e4519845f5.tar.gz
Update ansi color name change version.
-rw-r--r--CHANGES6
-rw-r--r--doc/docs/styles.rst12
-rw-r--r--pygments/formatters/terminal256.py4
3 files changed, 14 insertions, 8 deletions
diff --git a/CHANGES b/CHANGES
index b6362785..03471bf2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,12 @@ Issue numbers refer to the tracker at
pull request numbers to the requests at
<https://bitbucket.org/birkenfeld/pygments-main/pull-requests/merged>.
+Version 2.4.0
+-------------
+(not released yet)
+
+- Change ANSI color names (PR#777)
+
Version 2.3.1
-------------
(released Dec 16, 2018)
diff --git a/doc/docs/styles.rst b/doc/docs/styles.rst
index cd0144ab..65a2a863 100644
--- a/doc/docs/styles.rst
+++ b/doc/docs/styles.rst
@@ -203,10 +203,10 @@ settings.
.. _NewAnsiColorNames:
-.. versionchanged:: 2.3
+.. versionchanged:: 2.4
The definition of the ansi color names has changed.
-New names are easier to understand and align to the colors used in other projects.
+New names are easier to understand and align to the colors used in other projects.
+-------------------------+--------------------------+
@@ -218,17 +218,17 @@ New names are easier to understand and align to the colors used in other project
| ``ansiyellow`` | ``#ansibrown`` |
| ``ansiblue`` | ``#ansidarkblue`` |
| ``ansimagenta`` | ``#ansipurple`` |
-| ``ansicyan`` | ``#ansiteal`` |
-| ``ansigray`` | ``#ansilightgray`` |
+| ``ansicyan`` | ``#ansiteal`` |
+| ``ansigray`` | ``#ansilightgray`` |
| ``ansibrightblack`` | ``#ansidarkgray`` |
| ``ansibrightred`` | ``#ansired`` |
| ``ansibrightgreen`` | ``#ansigreen`` |
-| ``ansibrightyellow`` | ``#ansiyellow`` |
+| ``ansibrightyellow`` | ``#ansiyellow`` |
| ``ansibrightblue`` | ``#ansiblue`` |
| ``ansibrightmagenta`` | ``#ansifuchsia`` |
| ``ansibrightcyan`` | ``#ansiturquoise`` |
| ``ansiwhite`` | ``#ansiwhite`` |
+=========================+==========================+
-Old ansi color names are deprecated but will still work.
+Old ansi color names are deprecated but will still work.
diff --git a/pygments/formatters/terminal256.py b/pygments/formatters/terminal256.py
index aec19804..b18aca65 100644
--- a/pygments/formatters/terminal256.py
+++ b/pygments/formatters/terminal256.py
@@ -110,11 +110,11 @@ class Terminal256Formatter(Formatter):
`Terminal256Formatter` will map these to non extended foreground color.
See :ref:`AnsiTerminalStyle` for more information.
- .. versionchanged:: 2.3
+ .. versionchanged:: 2.4
The ansi color names have been updated with names that are easier to
understand and align with colornames of other projects and terminals.
See :ref:`NewAnsiColorNames` for more information.
-
+
Options accepted: