Clearer errors if we find a class without a known ending.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
df9c4933af
commit
0bacb981d1
@ -137,7 +137,7 @@ namespace MalachScript::Parser {
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: return false;
|
||||
default: logError(DiagnosticType::UnexpectedToken, current->GetSpan()); return false;
|
||||
}
|
||||
out = new ParsedClassStatement(TextSpan(start, current->GetSpan().GetEnd()), classAttr, identifier, inherits,
|
||||
body);
|
||||
|
Loading…
x
Reference in New Issue
Block a user