scribble icon indicating copy to clipboard operation
scribble copied to clipboard

indenter mishandles multiline `match` clause body starting with literal value

Open mbutterick opened this issue 6 years ago • 1 comments

If a match clause starts with a literal value, and the clause body goes onto a second line or more, those extra result lines are indented incorrectly.

#lang racket

(match 42
  [42 'this
      'that])
#lang at-exp racket

(match 42
  [42 'this
   'that])

mbutterick avatar Mar 14 '19 19:03 mbutterick

This also happens for case and cond.

samth avatar Mar 14 '19 21:03 samth