racket / racket/scribble

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

Open
#199 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
250
Forks
102
Avg merge
11d 11h
Merged PRs (30d)
1

Description

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])

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two supplied match examples, comparing the regular Racket and at-exp Racket indentation. Locate the indenter entry point that handles multiline match clause bodies, then add or update coverage for these examples. Done means the continuation result lines receive the expected indentation in both cases.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.