diff options
author | Dan Gudmundsson <dgud@erlang.org> | 2020-02-13 13:21:42 +0100 |
---|---|---|
committer | Dan Gudmundsson <dgud@erlang.org> | 2020-02-13 13:21:42 +0100 |
commit | 6e802c8d08442a96ea3b12786bb5c9a6d3451e20 (patch) | |
tree | 3ba2a14d4db1a4f2364b43697ef663bf003b2ded | |
parent | 555dd0d1e23505aba546984e1c153f757779244a (diff) | |
download | erlang-6e802c8d08442a96ea3b12786bb5c9a6d3451e20.tar.gz |
emacs: Fix try indentation
try Expr of
Pattern -> ok
...
'Pattern' indented wrong when non default erlang-indent-level was set.
-rw-r--r-- | lib/tools/emacs/erlang.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el index 16329aeb6f..dafb9d56ac 100644 --- a/lib/tools/emacs/erlang.el +++ b/lib/tools/emacs/erlang.el @@ -3035,9 +3035,9 @@ Return nil if inside string, t if in a comment." (save-excursion (goto-char (nth 1 stack-top)) (if (and erlang-icr-indent - (looking-at "\\(if\\|case\\|receive\\)[^_a-zA-Z0-9]")) + (looking-at "\\(if\\|case\\|receive\\|try\\)[^_a-zA-Z0-9]")) (+ (nth 2 stack-top) erlang-icr-indent) - (if (looking-at "\\(case\\|receive\\)[^_a-zA-Z0-9]") + (if (looking-at "\\(case\\|receive\\|try\\)[^_a-zA-Z0-9]") (+ (nth 2 stack-top) erlang-indent-level) (skip-chars-forward "a-z") (skip-chars-forward " \t") |