We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56e517 commit 8debd7dCopy full SHA for 8debd7d
elixir-smie.el
@@ -272,6 +272,13 @@
272
(cond
273
((smie-rule-sibling-p) nil)
274
((smie-rule-hanging-p) (smie-rule-parent elixir-smie-indent-basic))
275
+ ((and (not (smie-rule-sibling-p))
276
+ (not (smie-rule-hanging-p))
277
+ (smie-rule-parent-p "do:"))
278
+ ;; Dedent the line after an OP if it's after a "do:" token, which implies
279
+ ;; a one-line function.
280
+ (smie-rule-parent
281
+ (- (+ elixir-smie-indent-basic elixir-smie-indent-basic))))
282
(t (smie-rule-parent))))
283
(`(:before . "MATCH-STATEMENT-DELIMITER")
284
0 commit comments