diff options
author | Georg Brandl <georg@python.org> | 2012-05-30 23:59:23 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-05-30 23:59:23 +0200 |
commit | 9a529002673988b5bf2775f7654ba2f9c46c5bee (patch) | |
tree | 8f627db25d0f676b4c7a85fab2832f3f400ba974 | |
parent | 80b4af34b6a7c4b4ed3acd4e70da794318b187aa (diff) | |
download | pygments-9a529002673988b5bf2775f7654ba2f9c46c5bee.tar.gz |
Fix interpretation of #abc format color strings.
-rw-r--r-- | pygments/lexers/templates.py | 1 | ||||
-rw-r--r-- | pygments/style.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/templates.py b/pygments/lexers/templates.py index 84850728..c154eb0f 100644 --- a/pygments/lexers/templates.py +++ b/pygments/lexers/templates.py @@ -1504,6 +1504,7 @@ class ColdfusionLexer(RegexLexer): ], } + class ColdfusionMarkupLexer(RegexLexer): """ Coldfusion markup only diff --git a/pygments/style.py b/pygments/style.py index 470fe99f..0d9e6eb6 100644 --- a/pygments/style.py +++ b/pygments/style.py @@ -26,7 +26,7 @@ class StyleMeta(type): if len(col) == 6: return col elif len(col) == 3: - return col[0]+'0'+col[1]+'0'+col[2]+'0' + return col[0]*2 + col[1]*2 + col[2]*2 elif text == '': return '' assert False, "wrong color format %r" % text |