diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py index 293a400e..f9180c2d 100644 --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -782,8 +782,10 @@ def get_custom_lexer(extension): from pygments import lexers # custom override made by RhodeCode - if extension in ["mako"]: + if extension.lower() in ["mako"]: return lexers.get_lexer_by_name("html+mako") + elif extension.lower() in ["jenkinsfile"]: + return lexers.get_lexer_by_name("groovy") # check if we didn't define this extension as other lexer extensions = rhodecode.EXTENSIONS and getattr(rhodecode.EXTENSIONS, "EXTRA_LEXERS", None)