added missing punctuations that are allowd in scribble parens.
This commit is contained in:
parent
ac3581286f
commit
7d2c1b0b9e
|
@ -1227,16 +1227,19 @@
|
||||||
(append a*^ b*^)
|
(append a*^ b*^)
|
||||||
locs k))]
|
locs k))]
|
||||||
[else (values a* a*^ locs k)]))))
|
[else (values a* a*^ locs k)]))))
|
||||||
(define puncs
|
|
||||||
'([#\| . #\|]
|
|
||||||
[#\< . #\>]
|
|
||||||
[#\[ . #\]]
|
|
||||||
[#\( . #\)]
|
|
||||||
[#\! . #\!]
|
|
||||||
[#\- . #\-]))
|
|
||||||
(define (left-punc? c)
|
(define (left-punc? c)
|
||||||
(and (assv c (cdr puncs)) #t))
|
(define chars "([<!?~$%^&*-_+=:")
|
||||||
(define (rev-punc c) (cdr (assv c puncs)))
|
(let f ([i 0])
|
||||||
|
(cond
|
||||||
|
[(= i (string-length chars)) #f]
|
||||||
|
[(char=? c (string-ref chars i)) #t]
|
||||||
|
[else (f (+ i 1))])))
|
||||||
|
(define (rev-punc c)
|
||||||
|
(cond
|
||||||
|
[(char=? c #\() #\)]
|
||||||
|
[(char=? c #\[) #\]]
|
||||||
|
[(char=? c #\<) #\>]
|
||||||
|
[else c]))
|
||||||
(define (read-at-bar p locs k text-mode?)
|
(define (read-at-bar p locs k text-mode?)
|
||||||
(let ([c (peek-char p)])
|
(let ([c (peek-char p)])
|
||||||
(cond
|
(cond
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1830
|
1831
|
||||||
|
|
Loading…
Reference in New Issue