Clearer errors if we find a class without a known ending.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
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…
Reference in New Issue