Skip to content

Commit

Permalink
m-m-m/base#9: fix after change of EOS to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Jan 5, 2025
1 parent e80f0a9 commit 9d17e1b
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,11 @@ private void nextToken() {
return;
}
break;
case 0:
if (!this.reader.hasNext()) {
if (this.node.type == null) {
setState(StructuredState.DONE);
} else {
end(null);
}
case CharStreamScanner.EOS:
if (this.node.type == null) {
setState(StructuredState.DONE);
} else {
end(null);
}
return;
}
Expand Down

0 comments on commit 9d17e1b

Please sign in to comment.