Pygments

generic syntax highlighter


Ticket #392 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Scala Lexer hangs forever

Reported by: guest Owned by: gbrandl
Priority: major Milestone: 1.1
Component: other Keywords:
Cc:

Description

I am trying to run this command: prompt$ pygmentize -f html -Ostyle=linenos=1 -l scala /tmp/aa.scala >/tmp/aa.html

The command hangs (ie nothing happens and it does not complete), I have to hit Ctrl-\ to break it.

Attaching the aa.scala and aa.html files.

I notice that aa.html is exactly 4096 bytes, so perhaps some kind of chunking issue going on?

Attachments

aa.scala (1.4 kB) - added by guest 19 months ago.
aa.html (4.0 kB) - added by guest 19 months ago.

Change History

Changed 19 months ago by guest

Changed 19 months ago by guest

Changed 19 months ago by guest

  • component changed from docs to other

Changed 19 months ago by gbrandl

  • status changed from new to closed
  • resolution set to fixed

There were some regular expressions in the lexer that backtracked to death. Should be fixed in trunk by [2e3df9a241c9].

Changed 19 months ago by thatch

  • milestone set to 1.1
Note: See TracTickets for help on using tickets.