##// END OF EJS Templates
files: use custom lexer on mako files....
marcink -
r1584:e5e81e45 default
parent child Browse files
Show More
@@ -728,6 +728,11 b' def get_custom_lexer(extension):'
728 """
728 """
729 import rhodecode
729 import rhodecode
730 from pygments import lexers
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 # check if we didn't define this extension as other lexer
736 # check if we didn't define this extension as other lexer
732 extensions = rhodecode.EXTENSIONS and getattr(rhodecode.EXTENSIONS, 'EXTRA_LEXERS', None)
737 extensions = rhodecode.EXTENSIONS and getattr(rhodecode.EXTENSIONS, 'EXTRA_LEXERS', None)
733 if extensions and extension in rhodecode.EXTENSIONS.EXTRA_LEXERS:
738 if extensions and extension in rhodecode.EXTENSIONS.EXTRA_LEXERS:
General Comments 0
You need to be logged in to leave comments. Login now