Skip to content

Commit 59da012

Browse files
committed
Merge pull request #62 from elixir-lang/indent-align-to-dot
Remove grammar entry causing erroneous alignment to ".". Fixes #49
2 parents 57dab51 + 53e71a5 commit 59da012

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

elixir-smie.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ Return non-nil if any line breaks were skipped."
264264
)
265265
(non-block-expr
266266
(non-block-expr "OP" non-block-expr)
267-
(non-block-expr "DOT" non-block-expr)
268267
(non-block-expr "COMMA" non-block-expr)
269268
("(" statements ")")
270269
("{" statements "}")
@@ -275,8 +274,7 @@ Return non-nil if any line breaks were skipped."
275274
(match-statement))
276275
(match-statement
277276
(non-block-expr "->" statements)))
278-
'((assoc "DOT")
279-
(assoc "if")
277+
'((assoc "if")
280278
(assoc "do:")
281279
(assoc "else:")
282280
(assoc "COMMA")

test/elixir-mode-indentation-tests.el

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,3 +374,12 @@ end"
374374
x = fn(a, b) -> a + b end
375375
end
376376
end")
377+
378+
(elixir-def-indentation-test indents-list-of-floats-aligns
379+
()
380+
"
381+
[1.2,
382+
3.4]"
383+
"
384+
[1.2,
385+
3.4]")

0 commit comments

Comments
 (0)