use readtable if available to look up whitespace

This commit is contained in:
Jay McCarthy 2015-10-03 16:42:47 -04:00
parent 35aa2c2398
commit 4451f44dda

View File

@ -2039,7 +2039,9 @@ read_inner_inner(Scheme_Object *port, Scheme_Object *stxsrc, Scheme_Hash_Table *
while ( 1 ) {
next = scheme_peekc_special_ok(port);
if ( next == EOF ) { break; }
if ( scheme_isspace(next) ) { scheme_getc_special_ok(port); continue; }
if ( (table && readtable_kind(table, next, params) & READTABLE_WHITESPACE)
|| (!table && scheme_isspace(next)) ) {
scheme_getc_special_ok(port); continue; }
if ( next == '.' ) { scheme_getc_special_ok(port); found_dot = 1; break; }
break;
}