Better handling of diagnostics in the REPL.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-05 18:17:40 +01:00
parent 340d37f4a1
commit bfe27ec20f
3 changed files with 36 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ namespace MalachScript::Parser {
auto start = _position;
auto c = Consume();
switch (c) {
case u8'\0': return Create<LexTokenImpl<LexTokenKind::EndOfFile>>(TextSpan(start, start + 1));
case u8'\0': return Create<LexTokenImpl<LexTokenKind::EndOfFile>>(TextSpan(start + 1, start + 2));
case u8'*': {
auto n = Peek();
if (n == u8'*') {