From 200f1cd1f3f245716f14babe0c8ac34a544e92b2 Mon Sep 17 00:00:00 2001 From: nojhan Date: Fri, 2 May 2014 19:08:57 +0200 Subject: [PATCH] bugfix: test lexers in context --- colout/colout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colout/colout.py b/colout/colout.py index 293ed2c..41346c6 100755 --- a/colout/colout.py +++ b/colout/colout.py @@ -551,7 +551,7 @@ def colorin(text, color="red", style="normal"): color_code = str(color_nb) # programming language - elif color.lower() in lexers: + elif color.lower() in context["lexers"]: # bypass color encoding and return text colored by the lexer return color_lexer(color,style,text)