Skip to content

Commit b00ccb8

Browse files
committed
Fix bug in semi-ends-match fn.
1 parent ec9f61d commit b00ccb8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

elixir-smie.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
(defun elixir-smie--semi-ends-match ()
102102
"Return non-nil if the current line concludes a match block."
103103
(save-excursion
104-
(forward-char)
105104
(if (eolp)
106105
nil
107106
(progn (move-end-of-line 1)
@@ -176,8 +175,7 @@
176175
;; We don't want to specify any rules for the first `->' after `do' or
177176
;; `fn', since SMIE will look at the BNF to see how to handle indentation
178177
;; in that case.
179-
((and (not (smie-rule-parent-p "fn" "do"))
180-
(smie-rule-hanging-p))
178+
((smie-rule-hanging-p)
181179
(smie-rule-parent elixir-smie-indent-basic))))
182180

183181
(`(:before . "->")

0 commit comments

Comments
 (0)