bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7498: 23.2; scheme-mode.el doesn't parse racket file correctly


From: Clément Pit--Claudel
Subject: bug#7498: 23.2; scheme-mode.el doesn't parse racket file correctly
Date: Fri, 12 Aug 2016 16:37:51 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 2016-08-12 15:12, Alan Third wrote:
> Alexander Haeckel <alexanderhaeckel@lavabit.com> writes:
> 
>> I describe the problem from 'emacs -Q':
>> scheme-mode.el isn't able to correctly parse the file:
>> racket-5.0.2/collects/drracket/tool-lib.rkt
>> When I open the file, go to position (79,0)
>> and execute `forward-sexp' I get
>> Scan error: "Unbalanced parentheses", 2852, 65105
>>
>> The expected behaviour is for the point to be moved at the end
>> of the file behind the last closing parenthesis to position (1663,85).
>> When I move the point at the end of the file behind the last closing
>> parenthesis and do `backward-sexp' the point is moved to line
>> the point is moved to position (152,19) instead to (79,0), where
>> the next character is an opening curly brace.
> 
> There are lines of the form:
> 
>     @item{@racket[error-print-width] is set to 250;}
> 
> that appear to break things, because scheme-mode sees that closing curly
> bracket as a comment. This syntax looks like it’s Racket specific.

I think this isn't written in "core" Racket; it's Scribble, a dialect of Racket 
that's pretty remote from Scheme. IOW, it's not a trivial fix.

Clément.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]