gui icon indicating copy to clipboard operation
gui copied to clipboard

Improper indentation of (let ([define-foo \n 'test]) …) with #lang scribble/lp2

Open SuzanneSoy opened this issue 8 years ago • 1 comments

From @jsmaniac on February 26, 2016 16:54

In the following program, the expression bound to define-foo is improperly indented

#lang scribble/lp2

@chunk[<*>
       (let ([define-foo
 'test])
         define-foo)]

Using #lang racket, the expression is indented as expected:

#lang racket

(let ([define-foo
        'test])
  define-foo)

This happens only with identifiers that match the "keywords that look like Define" regexp (or list), from the preferences. The actual code I have is binding define-foo with splicing-syntax-parameterize, which explains the otherwise weird name.

I am using today's 6.4.0.8 build (20160226-15f47ef).

Copied from original issue: racket/drracket#44

SuzanneSoy avatar Feb 27 '16 17:02 SuzanneSoy

From @rfindler on February 26, 2016 19:47

Thank you for your interest. This is the wrong repo, tho. The code is actually here:

https://github.com/racket/gui/blob/master/gui-lib/scribble/private/indentation.rkt

SuzanneSoy avatar Feb 27 '16 17:02 SuzanneSoy