chibi-scheme
chibi-scheme copied to clipboard
scribble reader broken in string like `\foo|--{{}--|`
The behavior of Scribble parser provided by Chibi on string like \foo|--{{}--| doesn't match with Racket @-exp parser
Chibi:
foo@bar:~/tmp$ chibi-scheme
> (import (chibi scribble))
> (import (chibi string))
> (call-with-input-string "\\foo|---{{}---|" scribble-parse)
((foo "{}---|"))
Racket
foo@bar:~$ racket -ile scribble/reader "(use-at-readtable)"
Welcome to Racket v8.15 [cs].
> '@foo|--{{}--|
'(foo "{")
IMO it's a bug because when user add punctuation characters to change the delimiters, they're expecting to type unbalanced bracket/brace freely inside the body.