Bug 82651
git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1371 6955db30-a419-402b-8a0d-67ecbb4d7f56remotes/github/custis
parent
361a00ff13
commit
83c7e6fe49
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue