[squeak-dev] another parser bug

Florin Mateoc florin.mateoc at gmail.com
Fri Jan 13 05:21:13 UTC 2023


Hi Eliot,

Thank you for the quick fix, but I have one more example of misbehavior
when parsing comments. The issue is that the last period (or lack thereof)
makes a difference with regards to associating the comment with the correct
parse node.

For example, when parsing:

test
true ifTrue: ["inner comment"] "outer comment"

the parser associates both comments to the inside of the block, whereas if
we include the period, like so:

test
true ifTrue: ["inner comment"]. "outer comment"

it correctly leaves the inner comment inside and the outer comment outside

All the best,
Florin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20230113/7a103939/attachment.html>


More information about the Squeak-dev mailing list