racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
445 stars 93 forks source link

Off-by-one in check-syntax #544

Closed sorawee closed 1 year ago

sorawee commented 2 years ago

Consider:

#lang rhombus

fun
| factorial(0): 1
| factorial(n): n*factorial(n-1)

When hovering on *, n is highlighted.

Note that if we add spaces around *:

n * factorial(n-1)

then hovering on * no longer highlights n.

This seems to indicate that there's an off-by-one bug somewhere.

sorawee commented 1 year ago

Presumably fixed by dedf304dc40f1dff0c1