summaryrefslogtreecommitdiff
path: root/tests/test_terminal_formatter.py
diff options
context:
space:
mode:
authorMorten Enemark Lund <melund@gmail.com>2018-08-04 19:43:17 +0200
committerMorten Enemark Lund <melund@gmail.com>2018-08-04 19:43:17 +0200
commit52c64b9ac314b09f20579a9e97b09322e4367a2f (patch)
tree2e9e881a88463aebd038c50de80b5ce4126ca00b /tests/test_terminal_formatter.py
parent1b966038502c0b386a6645d4b5125f623d0947bb (diff)
downloadpygments-git-52c64b9ac314b09f20579a9e97b09322e4367a2f.tar.gz
Change ansi color names to more saying names
The ansi color names are changed to names which are easier to understand and align with color names of other projects and terminals. (e.g. ``#ansifuchsia`` to ``ansibrightmagenta``) This also drops the # prefix to the color names. Hashtag # is usually used for hex colors and the names are already prefixed with `ansi`. Furthermore, it allows the new and old set of names to be exclusive.
Diffstat (limited to 'tests/test_terminal_formatter.py')
-rw-r--r--tests/test_terminal_formatter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_terminal_formatter.py b/tests/test_terminal_formatter.py
index ee0ac380..1f44807d 100644
--- a/tests/test_terminal_formatter.py
+++ b/tests/test_terminal_formatter.py
@@ -61,10 +61,10 @@ class TerminalFormatterTest(unittest.TestCase):
class MyStyle(Style):
styles = {
- Token.Comment: '#ansidarkgray',
- Token.String: '#ansiblue bg:#ansidarkred',
- Token.Number: '#ansigreen bg:#ansidarkgreen',
- Token.Number.Hex: '#ansidarkgreen bg:#ansired',
+ Token.Comment: 'ansibrightblack',
+ Token.String: 'ansibrightblue bg:ansired',
+ Token.Number: 'ansibrightgreen bg:ansigreen',
+ Token.Number.Hex: 'ansigreen bg:ansibrightred',
}
@@ -90,7 +90,7 @@ async def function(a,b,c, *d, **kwarg:Bool)->Bool:
def test_256esc_seq(self):
"""
- test that a few escape sequences are actualy used when using #ansi<> color codes
+ test that a few escape sequences are actualy used when using ansi<> color codes
"""
def termtest(x):
return highlight(x, Python3Lexer(),