Fix startOfLine reader macros
This commit is contained in:
@@ -140,7 +140,9 @@ class Reader {
|
|||||||
var readFunction = null;
|
var readFunction = null;
|
||||||
if (stream.startOfLine)
|
if (stream.startOfLine)
|
||||||
readFunction = chooseReadFunction(stream, k.startOfLineReadTable);
|
readFunction = chooseReadFunction(stream, k.startOfLineReadTable);
|
||||||
if (readFunction == null)
|
if (readFunction != null)
|
||||||
|
stream.startOfLine = false;
|
||||||
|
else
|
||||||
readFunction = chooseReadFunction(stream, k.readTable);
|
readFunction = chooseReadFunction(stream, k.readTable);
|
||||||
if (readFunction == null)
|
if (readFunction == null)
|
||||||
throw 'No macro to read next expression';
|
throw 'No macro to read next expression';
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class Stream {
|
|||||||
|
|
||||||
var absolutePerNewline = 1;
|
var absolutePerNewline = 1;
|
||||||
|
|
||||||
public var startOfLine(default, null) = true;
|
public var startOfLine = true;
|
||||||
|
|
||||||
public function new(file:String) {
|
public function new(file:String) {
|
||||||
// Banish ye Windows line-endings
|
// Banish ye Windows line-endings
|
||||||
|
|||||||
Reference in New Issue
Block a user