From 963d6addf17cb4a4653aa6a96703768abf01a1ec Mon Sep 17 00:00:00 2001 From: nojhan Date: Thu, 16 Oct 2014 19:04:50 +0200 Subject: [PATCH] bugfix lexers --- colout/colout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colout/colout.py b/colout/colout.py index 0b7052e..19dcf96 100755 --- a/colout/colout.py +++ b/colout/colout.py @@ -1053,7 +1053,7 @@ if __name__ == "__main__": # if pygments elif as_source: logging.debug("asked for lexer: %s" % pattern.lower()) - assert(pattern.lower() in lexers) + assert(pattern.lower() in context["lexers"]) lexer = get_lexer_by_name(pattern.lower()) # Python => 256 colors, python => 8 colors ask_256 = pattern[0].isupper()