Opened 16 years ago
Last modified 11 years ago
#259 closed defect
Parsing Failure on TestLcl.thy — at Version 2
Reported by: | Graham Dutton | Owned by: | Graham Dutton |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | 1:pg-eclipse | Keywords: | |
Cc: |
Description (last modified by )
Parsing a file with no trailing whitespace fails.
For example: TestLcl.thy
in test repository fails at the final lines. PG parses the final two lines:
end end
as a single unit:
end[newline]en
(where [newline] is an actual newline), discarding the final character.
A functionally identical file TestLocale.thy
with trailing whitespace will not exhibit this behaviour.
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from David Aspinall to Graham Dutton |
Status: | new → assigned |
Actually appears to be an out-by-one error: can recreate on any thy file by trimming all trailing whitespace.
Changed 16 years ago by
Attachment: | parser-parsetext-outbyone.patch added |
---|
a partial solution: the line in question
Note: See
TracTickets for help on using
tickets.
This of course results in broken prover interaction:
PGIP:
Response: