Wrong highlighting in Ruby files
Bug #391412 reported by
Display Name
This bug report is a duplicate of:
Bug #392406: Update Pygments library to version 1.1 or later.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
New
|
Undecided
|
Unassigned | ||
loggerhead |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Examples:
http://
http://
The problem is in arg.gsub(/\\/, '/'), it thinks \/ is escaping \, however the \ is itself escaped. Therefore / is actually closing the regex.
To post a comment you must log in.
Without actually looking into this, Loggerhead uses the Pygments pygments. org/> syntax highlighting library, so it's almost
<http://
assuredly a bug in that, not Loggerhead.
This may have also been fixed in a newer version of Pygments than
Launchpad runs.