files: use html+mako lexer for .mako files.

This commit is contained in:
Marcin Kuzminski 2017-04-04 19:29:39 +02:00
parent 4caf89accf
commit bbcc92bb81

View file

@ -731,7 +731,7 @@ def get_custom_lexer(extension):
# custom override made by RhodeCode
if extension in ['mako']:
return lexers.get_lexer_by_name('Mako')
return lexers.get_lexer_by_name('html+mako')
# check if we didn't define this extension as other lexer
extensions = rhodecode.EXTENSIONS and getattr(rhodecode.EXTENSIONS, 'EXTRA_LEXERS', None)