|
@@ -38,7 +38,7 @@ def _lang(codelet): |
|
|
|
|
|
|
|
|
try: |
|
|
try: |
|
|
if codelet.filename: |
|
|
if codelet.filename: |
|
|
lex = pgl.get_lexer_for_filename(codelet.filename) |
|
|
|
|
|
|
|
|
lex = pgl.guess_lexer_for_filename(codelet.filename, codelet.code) |
|
|
else: |
|
|
else: |
|
|
lex = pgl.guess_lexer(codelet.code) |
|
|
lex = pgl.guess_lexer(codelet.code) |
|
|
except util.ClassNotFound: |
|
|
except util.ClassNotFound: |
|
|