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: Jean Louis
Subject: bug#7498: 23.2; scheme-mode.el doesn't parse racket file correctly
Date: Thu, 19 Nov 2020 08:25:10 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Stefan Kangas <stefan@marxist.se> [2020-11-19 07:47]:
> Alan Third <alan@idiocy.org> writes:
> 
> > Clément Pit--Claudel <clement.pit@gmail.com> writes:
> >
> >> On 2016-08-12 15:12, Alan Third wrote:
> >>> Alexander Haeckel <alexanderhaeckel@lavabit.com> writes:
> >>>
> >>> 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.
> >
> > I think since it's not really scheme we can't expect scheme-mode to deal
> > with it. It may make more sense to have a separate Racket or Scribble
> > mode (based on Scheme mode, I expect).

scheme-mode allows all kinds of evaluations including with
racket. scheme-program has to be set to racket -i

closing curly bracket on my side is not considered comment.

>From scheme.el:

(defconst scheme-sexp-comment-syntax-table
  (let ((st (make-syntax-table scheme-mode-syntax-table)))
    (modify-syntax-entry ?\; "." st)
    (modify-syntax-entry ?\n " " st)
    (modify-syntax-entry ?#  "'" st)
    st))

How can I reproduce that bug? Please send me example.





reply via email to

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