mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
Handle more escaped chars
This commit is contained in:
parent
b534657855
commit
64d39650fb
1 changed files with 7 additions and 2 deletions
|
@ -482,10 +482,15 @@
|
||||||
(in-port:get-lnum ptbl)
|
(in-port:get-lnum ptbl)
|
||||||
(in-port:get-cnum ptbl)))
|
(in-port:get-cnum ptbl)))
|
||||||
((or (equal? #\" c)
|
((or (equal? #\" c)
|
||||||
|
(equal? #\' c)
|
||||||
|
(equal? #\? c)
|
||||||
(equal? #\\ c))
|
(equal? #\\ c))
|
||||||
(cons c buf))
|
(cons c buf))
|
||||||
((equal? #\n c)
|
((equal? #\a c) (cons #\alarm buf))
|
||||||
(cons #\newline buf))
|
((equal? #\b c) (cons #\backspace buf))
|
||||||
|
((equal? #\n c) (cons #\newline buf))
|
||||||
|
((equal? #\r c) (cons #\return buf))
|
||||||
|
((equal? #\t c) (cons #\tab buf))
|
||||||
(else
|
(else
|
||||||
(parse-error (string-append
|
(parse-error (string-append
|
||||||
"invalid escape character ["
|
"invalid escape character ["
|
||||||
|
|
Loading…
Add table
Reference in a new issue