bugfix: test lexers in context
This commit is contained in:
parent
39674665d8
commit
200f1cd1f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue