Browse Source

Fix initing lexer.

tags/v1.0^2
Ben Kurtovic 10 years ago
parent
commit
1fc123a57d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bitshift/codelet.py

+ 1
- 1
bitshift/codelet.py View File

@@ -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], [])


Loading…
Cancel
Save