bugfix lexers
This commit is contained in:
parent
d47272663d
commit
963d6addf1
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue