Skip to content

Fix Pygments 500 error if lexer not found by name

Ramya Authappan requested to merge github/fork/Razer6/fix_not_found_lexers into master

Created by: Razer6

In case of lexer is not found by name GitLab throws a 500 error. Use first alias of lexer to for highlighting.

This fixes if user wants to format some bash commands like

```cmd
test
 .```

Merge request reports

Loading