setError use in scanPlain.

This commit is contained in:
Ferdinand Majerech 2014-07-24 18:44:07 +02:00
parent 1969dc0e97
commit 571eecd836

View file

@ -1480,11 +1480,10 @@ final class Scanner
spacesTransaction.commit();
reader_.sliceBuilder.finish();
reader_.forward(length);
errorData_ = ErrorData("While scanning a plain scalar", startMark,
setError("While scanning a plain scalar", startMark,
"found unexpected ':' . Please check "
"http://pyyaml.org/wiki/YAMLColonInFlowContext "
"for details.", reader_.mark);
error_ = true;
return Token.init;
}