An infinite loop in SMLLexer in Pygments versions 1.5 to 2.7.3 may lead to denial of service when performing syntax highlighting of a Standard ML (SML) source file, as demonstrated by input that only contains the "exception" keyword.
Configuration 1 (hide)
Configuration 2 (hide)
Configuration 3 (hide)
Loop with Unreachable Exit Condition ('Infinite Loop')