adjust indentation so that hyphens at the start of sexp causes subsequent
lines to not indent
This commit is contained in:
parent
9f3635f399
commit
c3322ca05d
|
@ -708,7 +708,8 @@
|
||||||
(- id-end contains)
|
(- id-end contains)
|
||||||
0))
|
0))
|
||||||
(cond
|
(cond
|
||||||
[(first-sexp-is-keyword? contains)
|
[(or (first-sexp-is-keyword? contains)
|
||||||
|
(sexp-is-all-hyphens? contains))
|
||||||
(visual-offset contains)]
|
(visual-offset contains)]
|
||||||
[(second-sexp-is-ellipsis? contains)
|
[(second-sexp-is-ellipsis? contains)
|
||||||
(visual-offset contains)]
|
(visual-offset contains)]
|
||||||
|
|
|
@ -177,6 +177,8 @@
|
||||||
"(#:x 0\n 1)")
|
"(#:x 0\n 1)")
|
||||||
(test-indentation "(a b c d\n---)"
|
(test-indentation "(a b c d\n---)"
|
||||||
"(a b c d\n ---)")
|
"(a b c d\n ---)")
|
||||||
|
(test-indentation "[---- \"β\"\na"
|
||||||
|
"[---- \"β\"\n a")
|
||||||
|
|
||||||
|
|
||||||
(define (test-magic-square-bracket which before after)
|
(define (test-magic-square-bracket which before after)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user