# HG changeset patch # User Marcin Kuzminski # Date 2017-04-04 17:29:39 # Node ID da8c8187ca530f78e93d663e36aeae7a0d2676b8 # Parent 9abd8b3539faa8747ec9b68b374f7e8b57098a6c files: use html+mako lexer for .mako files. diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -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)