[Cuis-dev] Fix: a number that is the last character of a method now gets its exact range
Juan Vuletich
juan at cuis.st
Fri Nov 20 09:55:32 PST 2026
Now at GitHub.
Thanks!
On 2026-11-19 3:47 PM, Hernán Wilkinson via Cuis-dev wrote:
>
> Hi,
>
> Attached is a fix for when the range of a number that is the last
> character of a method is requested. The scanner marks any token that
> starts on the last character of the source one character early and I
> fised this for variables a long ago in Parser>>variable; but numbers
> had no correction.
> Parser>>literalExpression now corrects the range through
> rangeOfLiteral:scannedAt:. I used the same approach in variable
> instead of changing the scanner’s mark, because Parser>>expected:
> compensates for that mark when it places syntax error messages.
> It includes compiler tests and changes in refactoring tests.
> The Parser has the same bug with a one-character unary selector at
> the very end (^self x), I soon will send the fix.
>
> Cheers!
> Hernan.
>
>
> --
> *Hernán Wilkinson
> Agile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
>
--
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20261120/5b2810c5/attachment.htm>
More information about the Cuis-dev
mailing list