core: reader_read_sexp_: Prepare for M2-Planet.

* src/reader.c (reader_read_sexp_): Prepare for M2-Planet.
This commit is contained in:
Jan Nieuwenhuizen 2019-10-24 21:36:36 +02:00
parent 5a2f0c19b9
commit eb48442b50
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 2 deletions

View File

@ -149,8 +149,9 @@ reset_reader:
return cons (cell_symbol_quote, cons (reader_read_sexp_ (readchar (), a), cell_nil));
if (c == '"')
return reader_read_string ();
if (c == '.' && (reader_identifier_p (peekchar ()) == 0))
return cell_dot;
if (c == '.')
if (reader_identifier_p (peekchar ()) == 0)
return cell_dot;
return reader_read_identifier_or_number (c);
}