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

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

Re: Scheme mode syntax fixes


From: Dave Love
Subject: Re: Scheme mode syntax fixes
Date: Mon, 10 Oct 2005 18:10:30 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.4 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> The syntax of `|' in Scheme mode should be "\" 23" to account for
>> symbol-quoting, e.g. `|foo bar|'.  Also `#' should have syntax "' 14n"
>> for nestable inline comments, and should be taken out of the font-lock
>> syntax alist in font-lock-defaults.  (These aren't R5RS syntax, but
>> are supported by some current implementations.)
>
>> Then I think `lisp-font-lock-syntactic-face-function' should avoid
>> fontifying the quoted symbols as strings.  The `font-lock-string-face'
>> at the end should be replaced by something like
>
>> (if (eq ?| (nth 3 state))
>>     nil
>>   font-lock-string-face)
>
>> This will apply to, and be appropriate for, Common Lisp too.
>
> It should now work correctly.

I'll have a look at it sometime when I can disentangle the conflicts
with my changes as I can't remember what the state of it was.  Someone
made different changes to what I suggested which weren't right and I'd
have to check what I fixed on top of that.

By the way, there my be stuff worth picking up for scheme.el from
Quack <URL:http://www.neilvandyke.org/quack/>, though that looks
rather baroque.  I think there's also a special mode for scheme48
which might have things to feed back.




reply via email to

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