diff --git a/bitshift/codelet.py b/bitshift/codelet.py index 8fbdcfe..8bc3908 100644 --- a/bitshift/codelet.py +++ b/bitshift/codelet.py @@ -83,7 +83,7 @@ class Codelet(object): """ lang = LANGS[self.language] lines = reduce(concat, [[loc[0] for loc in sym[1] + sym[2]] for sym in - reduce(concat, self.symbols.values())]) + reduce(concat, self.symbols.values(), [])], []) formatter = HtmlFormatter(linenos=True, hl_lines=lines) code = highlight(self.code, get_lexer_by_name(lang.lower()), formatter)