1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #476 resolved

Ruby lexer a bit greedy with regexps

tekkub
created an issue

We had a user report this, if you check out this file you'll see pygments grabbing a large chunk of text and highlighting it, when it should only grab a small chunk. Perhaps it's not using a non-greedy capture somewhere?

http://github.com/kyleburton/base-app/blob/master/lib/base_app.rb#L66-80

Comments (2)

  1. Log in to comment