File tree Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Expand file tree Collapse file tree 2 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 285
285
((looking-at elixir-smie--operator-regexp)
286
286
(goto-char (match-end 0 ))
287
287
" OP" )
288
- (t (let ((token (smie-default-forward-token )))
289
- (unless (or (elixir-smie-empty-string-p token)
290
- (elixir-smie--at-dot-call))
291
- token)))))
288
+ (t
289
+ (let ((token (smie-default-forward-token )))
290
+ (unless (or (elixir-smie-empty-string-p token)
291
+ (elixir-smie--at-dot-call))
292
+ token)))))
292
293
293
294
(defun elixir-smie--at-dot-call ()
294
295
(and (eq ?w (char-syntax (following-char )))
346
347
(cond
347
348
((and (smie-rule-parent-p " ;" )
348
349
(smie-rule-hanging-p ))
349
- (smie-rule-parent ( - elixir-smie-indent-basic) ))
350
+ (smie-rule-parent ))
350
351
((smie-rule-parent-p " (" )
351
352
(smie-rule-parent ))
352
353
((smie-rule-parent-p " ->" )
Original file line number Diff line number Diff line change @@ -1947,6 +1947,25 @@ defmodule Test do
1947
1947
end
1948
1948
" )
1949
1949
1950
+ (elixir-def-indentation-test indent-before-comma
1951
+ (:tags '(indentation))
1952
+ "
1953
+ defmodule TestIndentation do
1954
+ import Enum
1955
+
1956
+ @att %{ab: 21,
1957
+ de: 22}
1958
+ IO.inspect @att
1959
+ end"
1960
+ "
1961
+ defmodule TestIndentation do
1962
+ import Enum
1963
+
1964
+ @att %{ab: 21,
1965
+ de: 22}
1966
+ IO.inspect @att
1967
+ end" )
1968
+
1950
1969
; ; We don't want automatic whitespace cleanup here because of the significant
1951
1970
; ; whitespace after `Record' above. By setting `whitespace-action' to nil,
1952
1971
; ; `whitespace-mode' won't automatically clean up trailing whitespace (in my
You can’t perform that action at this time.
0 commit comments