Ticket #196 (new bug report)

Opened 7 years ago

Off by one line numbers

Reported by: NeilMitchell2 Owned by: nibro
Priority: major Milestone:
Component: parser Version: 1.8.x
Keywords: Cc:


parseFileContents "{-# LINE 1 \"foo\" #-}\n\na=1"

This puts the "a=1" bit on line 3, where it should be on line 2.

I think there may be two bugs in this area - I was trying to debug http://code.google.com/p/ndmitchell/issues/detail?id=331 and it kept behaving strangely. Once this bug is fixed then I may have another one for you.

Note: See TracTickets for help on using tickets.