Show More
@@ -728,6 +728,11 b' def get_custom_lexer(extension):' | |||
|
728 | 728 | """ |
|
729 | 729 | import rhodecode |
|
730 | 730 | from pygments import lexers |
|
731 | ||
|
732 | # custom override made by RhodeCode | |
|
733 | if extension in ['mako']: | |
|
734 | return lexers.get_lexer_by_name('Mako') | |
|
735 | ||
|
731 | 736 | # check if we didn't define this extension as other lexer |
|
732 | 737 | extensions = rhodecode.EXTENSIONS and getattr(rhodecode.EXTENSIONS, 'EXTRA_LEXERS', None) |
|
733 | 738 | if extensions and extension in rhodecode.EXTENSIONS.EXTRA_LEXERS: |
General Comments 0
You need to be logged in to leave comments.
Login now