Bug 82651

git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1371 6955db30-a419-402b-8a0d-67ecbb4d7f56
remotes/github/custis
vfilippov 2011-09-12 15:09:34 +00:00 committed by Vitaliy Filippov
parent 361a00ff13
commit 83c7e6fe49
1 changed files with 2 additions and 0 deletions

View File

@ -1443,6 +1443,8 @@ def markup_stream_pygments(request, cfg, blame_data, fp, filename, mime_type):
get_lexer_by_name, \
get_lexer_for_mimetype, \
get_lexer_for_filename
from pygments.lexers._mapping import LEXERS
LEXERS['BashLexer'] = ('pygments.lexers.other', 'Bash', ('bash', 'sh'), ('*.sh',), ('application/x-sh', 'application/x-shellscript', 'text/x-sh', 'text/x-shellscript'))
encoding = 'guess'
if cfg.options.detect_encoding:
try: