From 1fc123a57d62c477131c3f7e7f7c834cceac998c Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 6 Jul 2014 02:35:32 -0400 Subject: [PATCH] Fix initing lexer. --- bitshift/codelet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitshift/codelet.py b/bitshift/codelet.py index 664599c..901e38b 100644 --- a/bitshift/codelet.py +++ b/bitshift/codelet.py @@ -88,7 +88,7 @@ class Codelet(object): lang = LANGS[self.language] code = self.code if highlight_code: - lexer = find_lexer_class(lang) or get_lexer_by_name("text") + lexer = find_lexer_class(lang)() or get_lexer_by_name("text") symbols = reduce(concat, self.symbols.values(), []) lines = reduce(concat, [[loc[0] for loc in sym[1] + sym[2]] for sym in symbols], [])