aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
diff options
context:
space:
mode:
authorMagnus Henoch <[email protected]>2013-01-24 16:34:13 +0000
committerMagnus Henoch <[email protected]>2013-01-24 16:34:13 +0000
commitf8223c00297beb3764b2cc1a70e2e8ac81b74d76 (patch)
treefb5cb9b3b863a351139b43bf0e065bd171017aaa /lib/tools/emacs/erlang.el
parente99df74bee7c245ec76678e336fcd09d4b51a089 (diff)
downloadotp-f8223c00297beb3764b2cc1a70e2e8ac81b74d76.tar.gz
otp-f8223c00297beb3764b2cc1a70e2e8ac81b74d76.tar.bz2
otp-f8223c00297beb3764b2cc1a70e2e8ac81b74d76.zip
Fix syntax highlighting of $\' in Emacs mode
The single quote in $\' does not begin an atom. Change the regexp to treat it just like $\". Previously this code would be incorrectly highlighted: foo() -> Quote = $\', %% This gets coloured as an atom, not as a comment ...
Diffstat (limited to 'lib/tools/emacs/erlang.el')
-rw-r--r--lib/tools/emacs/erlang.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index 2967acf310..d473611eaf 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -1518,9 +1518,9 @@ Other commands:
. (("\\(?:^\\|[^$]\\)\"\\(?:[^\"\n]\\|\\\\\"\\)*\\(\\$\\)\"" 1 "w")
;; Likewise for atoms
("\\(?:^\\|[^$]\\)'\\(?:[^'\n]\\|\\\\'\\)*\\(\\$\\)'" 1 "w")
- ;; And the dollar sign in $\" escapes two characters, not
- ;; just one.
- ("\\(\\$\\)\\\\\\\"" 1 "'"))))))
+ ;; And the dollar sign in $\" or $\' escapes two
+ ;; characters, not just one.
+ ("\\(\\$\\)\\\\[\"']" 1 "'"))))))