From bbcc92bb81b899cc59756b191b7ad5037c069c48 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 4 Apr 2017 19:29:39 +0200 Subject: [PATCH] files: use html+mako lexer for .mako files. --- rhodecode/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py index 97d5a18b..32eed5a9 100644 --- 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)