Fix startOfLine reader macros
This commit is contained in:
@@ -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';
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user