Skip to content

Commit

Permalink
Fix offside rule for backtick operators
Browse files Browse the repository at this point in the history
  • Loading branch information
natefaubion committed Aug 8, 2021
1 parent ac53efa commit 95c749f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PureScript/CST/Layout.purs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ insertLayout src@{ range, value: tok } nextPos stack =
Tuple (Tuple _ LytTick : stk') acc' ->
Tuple stk' acc' # insertToken src
_ ->
state # insertDefault # pushStack tokPos LytTick
state # collapse offsideEndP # insertSep # insertToken src # pushStack tokPos LytTick

-- In general, commas should close all indented contexts.
-- example = [ do foo
Expand Down

0 comments on commit 95c749f

Please sign in to comment.