Fix syntax highlighting of $ in Emacs

Magnus Henoch <>
Wed Sep 15 16:29:44 CEST 2010

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:// dollar_font_lock

Magnus Henoch, 
  Erlang Solutions

More information about the erlang-patches mailing list