Skip to content

Commit 05af954

Browse files
committed
R7RS: Add \| escape inside strings.
1 parent 6770887 commit 05af954

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

LOG

+1
Original file line numberDiff line numberDiff line change
@@ -1138,3 +1138,4 @@
11381138
it isn't an attractive hazzard.
11391139
configure, makefiles/Mf-install.in
11401140
- add #\null and #\escape as aliases for #\nul and #\esc (R7RS compatibility)
1141+
- allow \| escape inside strings (R7RS compatibility)

mats/6.ms

+1
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,7 @@
15741574
(eqv? (string-ref "\\\"\'" 0) #\\)
15751575
(eqv? (string-ref "\\\"\'" 1) #\")
15761576
(eqv? (string-ref "\\\"\'" 2) #\')
1577+
(eqv? (string-ref "\|\v" 0) #\|)
15771578
(= (char->integer (string-ref "a\012" 1)) #o12 10)
15781579
(= (char->integer (string-ref "a\015" 1)) #o15 13)
15791580
(= (char->integer (string-ref "a\177" 1)) #o177 127)

s/read.ss

+1-1
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@
778778
(with-read-char c
779779
(state-case c
780780
[eof (with-unread-char c (xcall rd-eof-error "string"))]
781-
[(#\\ #\")
781+
[(#\\ #\" #\|)
782782
(with-stretch-buffer i c
783783
(*state rd-token-string (fx+ i 1)))]
784784
[(#\n #\a #\b #\f #\r #\t #\v)

0 commit comments

Comments
 (0)