diff options
author | Steve Vinoski <[email protected]> | 2015-04-02 23:11:35 -0400 |
---|---|---|
committer | Zandra Hird <[email protected]> | 2015-04-20 11:43:16 +0200 |
commit | 6b6f1504ab0624322a116a32eed141453b07d0e3 (patch) | |
tree | 74f2b510a32bb1621d23f397fb4ab040e39bc24d /lib/tools/emacs/test.erl.orig | |
parent | ddfbbcbbd489913120a55b2a054b046c68b40a8a (diff) | |
download | otp-6b6f1504ab0624322a116a32eed141453b07d0e3.tar.gz otp-6b6f1504ab0624322a116a32eed141453b07d0e3.tar.bz2 otp-6b6f1504ab0624322a116a32eed141453b07d0e3.zip |
Minor fixes to emacs erlang-mode
Fix "Unbalanced parentheses" error when indenting particular map
constructs. Add new test cases for this fix.
To prevent infinite looping when the programmer mistakenly enters
incorrect syntax, detect cases where erlang-partial-parse fails to
advance when called within a loop, and raise an "Illegal syntax"
error.
Diffstat (limited to 'lib/tools/emacs/test.erl.orig')
-rw-r--r-- | lib/tools/emacs/test.erl.orig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/tools/emacs/test.erl.orig b/lib/tools/emacs/test.erl.orig index a9d09000d2..3d8f29fe18 100644 --- a/lib/tools/emacs/test.erl.orig +++ b/lib/tools/emacs/test.erl.orig @@ -32,6 +32,14 @@ -module(test). -compile(export_all). +%% Used to cause an "Unbalanced parentheses" error. +foo(M) -> +M#{a :=<<"a">> +,b:=1}. +foo() -> +#{a =><<"a">> +,b=>1}. + %% Module attributes should be highlighted -export([t/1]). |