racket / racket/drracket

Strange indentation behavior in scribble base depending on if previous element was a number or a string

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

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

The follow program is indented with cmd-i

#lang scribble/base

@list[1
 "x"]


@list["1"
      "x"]

I would expect both snippets to indent like the second, but it seems that replacing 1 with "1" changes the behavior of the indenter.

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 issue in DrRacket using the Scribble/base snippets and Cmd-I, comparing indentation when the first element is 1 versus "1". Trace the indentation behavior from that editor command and verify that both snippets receive the same indentation.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.