allow symbols with leading '.'

This commit is contained in:
Yuichi Nishiwaki 2014-06-25 21:40:26 +09:00
parent bd822fa4c6
commit 029efc91c9
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ read_pair(pic_state *pic, struct pic_port *port, char c)
if (c == tCLOSE) {
return pic_nil_value();
}
if (c == '.') {
if (c == '.' && strchr("()#;,|'\" \t\n\r", peek(port)) != NULL) {
cdr = read(pic, port, next(port));
if ((c = skip(port, ' ')) != tCLOSE) {