瀏覽代碼

Change form get_lexer to guess_lexer -- guess_lexer is more accurate.

tags/v1.0^2
Benjamin Attal 10 年之前
父節點
當前提交
7337638b72
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bitshift/parser/__init__.py

+ 1
- 1
bitshift/parser/__init__.py 查看文件

@@ -38,7 +38,7 @@ def _lang(codelet):

try:
if codelet.filename:
lex = pgl.get_lexer_for_filename(codelet.filename)
lex = pgl.guess_lexer_for_filename(codelet.filename, codelet.code)
else:
lex = pgl.guess_lexer(codelet.code)
except util.ClassNotFound:


Loading…
取消
儲存