Fix startOfLine reader macros

This commit is contained in:
2020-12-13 16:45:22 -07:00
parent 0e54974f58
commit 048d9a6bc7
2 changed files with 4 additions and 2 deletions

View File

@@ -140,7 +140,9 @@ class Reader {
var readFunction = null;
if (stream.startOfLine)
readFunction = chooseReadFunction(stream, k.startOfLineReadTable);
if (readFunction == null)
if (readFunction != null)
stream.startOfLine = false;
else
readFunction = chooseReadFunction(stream, k.readTable);
if (readFunction == null)
throw 'No macro to read next expression';

View File

@@ -23,7 +23,7 @@ class Stream {
var absolutePerNewline = 1;
public var startOfLine(default, null) = true;
public var startOfLine = true;
public function new(file:String) {
// Banish ye Windows line-endings