[erlang-patches] Fix syntax highlighting of $ in Emacs

Dan Gudmundsson <>
Wed Sep 22 15:09:05 CEST 2010


Hi
I tested this, with test.erl included in the emacs directory.

It looks much better, but after an Erlang/indent-buffer (from menu) it
is broken,
see color coding at line 213 and below.

The original version doesn't behave that way, please fix.

Tested with emacs version 23.2.1

/Dan


2010/9/17 Björn Gustavsson <>:
> On Wed, Sep 15, 2010 at 4:29 PM, Magnus Henoch
> <> wrote:
>> This patch fixes Emacs syntax highlighting of the dollar sign in two
>> cases, namely for strings ending with a dollar sign and an escaped
>> double quote as a character constant:
>>
>> -vsn("$Revision: 42 $").
>>
>> foo() ->
>>    $\".
>>
>> These combinations used to cause the syntax highlighter to believe that
>> the following code is part of a string.
>>
>> git fetch git://github.com/legoscia/otp.git dollar_font_lock
>
> Thanks! Will include in 'pu'.
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
>
> ________________________________________________________________
> erlang-patches (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-patches mailing list