adjust indentation so that hyphens at the start of sexp causes subsequent

lines to not indent
This commit is contained in:
Robby Findler 2016-06-22 20:44:29 -05:00
parent 9f3635f399
commit c3322ca05d
2 changed files with 4 additions and 1 deletions

View File

@ -708,7 +708,8 @@
(- id-end contains)
0))
(cond
[(first-sexp-is-keyword? contains)
[(or (first-sexp-is-keyword? contains)
(sexp-is-all-hyphens? contains))
(visual-offset contains)]
[(second-sexp-is-ellipsis? contains)
(visual-offset contains)]

View File

@ -177,6 +177,8 @@
"(#:x 0\n 1)")
(test-indentation "(a b c d\n---)"
"(a b c d\n ---)")
(test-indentation "[---- \"β\"\na"
"[---- \"β\"\n a")
(define (test-magic-square-bracket which before after)