setError use in scanPlain.
This commit is contained in:
parent
1969dc0e97
commit
571eecd836
|
@ -1480,11 +1480,10 @@ final class Scanner
|
||||||
spacesTransaction.commit();
|
spacesTransaction.commit();
|
||||||
reader_.sliceBuilder.finish();
|
reader_.sliceBuilder.finish();
|
||||||
reader_.forward(length);
|
reader_.forward(length);
|
||||||
errorData_ = ErrorData("While scanning a plain scalar", startMark,
|
setError("While scanning a plain scalar", startMark,
|
||||||
"found unexpected ':' . Please check "
|
"found unexpected ':' . Please check "
|
||||||
"http://pyyaml.org/wiki/YAMLColonInFlowContext "
|
"http://pyyaml.org/wiki/YAMLColonInFlowContext "
|
||||||
"for details.", reader_.mark);
|
"for details.", reader_.mark);
|
||||||
error_ = true;
|
|
||||||
return Token.init;
|
return Token.init;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue