Arguments with comments walk to the right #214

Closed
opened 2019-02-04 17:12:31 +01:00 by matt-noonan · 1 comment
matt-noonan commented 2019-02-04 17:12:31 +01:00 (Migrated from github.com)

In a multi-line function application with line comments on some arguments, the indent level increases after each commented line. For example:

foo = bar
  arg1 -- this is the first argument
  arg2 -- this is the second argument
  arg3 -- this is the third argument, now I'll skip one comment
  arg4
  arg5 -- this is the fifth argument
  arg6 -- this is the sixth argument

formats to

foo =
  bar arg1 -- this is the first argument
           arg2 -- this is the second argument
                arg3 -- this is the third argument, now I'll skip one comment
                     arg4 arg5 -- this is the fifth argument
                               arg6 -- this is the sixth argument
In a multi-line function application with line comments on some arguments, the indent level increases after each commented line. For example: ```haskell foo = bar arg1 -- this is the first argument arg2 -- this is the second argument arg3 -- this is the third argument, now I'll skip one comment arg4 arg5 -- this is the fifth argument arg6 -- this is the sixth argument ``` formats to ```haskell foo = bar arg1 -- this is the first argument arg2 -- this is the second argument arg3 -- this is the third argument, now I'll skip one comment arg4 arg5 -- this is the fifth argument arg6 -- this is the sixth argument ```
tfausak commented 2019-06-18 03:51:03 +02:00 (Migrated from github.com)

Closing as fixed by .

Closing as fixed by #215.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hexagoxel/brittany#214
There is no content yet.