Ticket #335 (closed defect: fixed)
Token on line after end of docstring causes parser confusion and 'useless error'
Reported by: | hopscc | Owned by: | |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.9.4 |
Keywords: | Cc: |
Description
Also found by Chasm.
see Useless Error
Token(s) after a closing docstring token causes end of docstring to be unrecognised so text is then absorbed to start of next docstring.
first two tokens of that docstring look like a reversed var declaration which causes the 'local variable' message.
Suggest adjusting end of docstring token to allow (but ignore and warn on) non wspace to eoln after closing (CobraTokeniser)
(I downrated this slightly to medium cos its a pretty obscure situation (accidental) but the resulting error message and source fingering is utterly unhelpful.)
Change History
Note: See
TracTickets for help on using
tickets.