Ticket #395 (closed defect: fixed)
very minor failure in parsing Python
| Reported by: | guest | Owned by: | thatch |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.1 |
| Component: | lexers | Keywords: | |
| Cc: |
Description
I ran a test file from python4ply against pygments as a stress test, because that file contains nearly every syntax construct I could find in Python. The result is at http://pygments.org/demo/1482/ .
It shows an extremely minor parsing bug. Python allows the following
def \ f(): pass
but pygments highlights the "\", which I assume means there was a lexing error.
No one actually writes code like that so it's not like this is a serious problem.
Change History
Note: See
TracTickets for help on using
tickets.