We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7d2709 + 1e997cb commit b352f22Copy full SHA for b352f22
elixir-smie.el
@@ -294,6 +294,10 @@ Return non-nil if any line breaks were skipped."
294
295
(defun elixir-smie-rules (kind token)
296
(pcase (cons kind token)
297
+ (`(:after . "STRING")
298
+ (if (smie-rule-prev-p "do:")
299
+ (smie-rule-parent 0)
300
+ nil))
301
(`(:elem . basic)
302
(if (smie-rule-hanging-p)
303
0
test/elixir-mode-indentation-tests.el
@@ -125,7 +125,7 @@ defmodule FooBar do
125
end
126
end")
127
128
-(elixir-def-indentation-test indents-do-blocks-with-space-after-inline (:expected-result :failed)
+(elixir-def-indentation-test indents-do-blocks-with-space-after-inline ()
129
"defmodule Foo do
130
def foobar do
131
if true, do: IO.puts \"yay\"
0 commit comments