When running the following code with the latest git version of pygments on the attached input results of in 100% CPU consumption for an arbitrary long time:
import sys
import pygments
import pygments.formatters
import pygments.lexers
with open(sys.argv[1], 'rb') as f:
data = f.read()
lexer = pygments.lexers.guess_lexer(str(data))
pygments.highlight(str(data), lexer, pygments.formatters.HtmlFormatter())
pygments.txt