Fixes fallthrough in lexer on initial bytes of Byte order mark (\xEF), but not the following ones.
This commit is contained in:
parent
329a54c8cf
commit
14db160890
|
@ -250,6 +250,8 @@ namespace MalachScript::Parser {
|
||||||
Progress(2);
|
Progress(2);
|
||||||
return Create<LexTokenImpl<LexTokenKind::Whitespace>>(TextSpan(start, start + 3));
|
return Create<LexTokenImpl<LexTokenKind::Whitespace>>(TextSpan(start, start + 3));
|
||||||
}
|
}
|
||||||
|
LogError(Diagnostics::DiagnosticType::UnknownToken, TextSpan(start, start + 1));
|
||||||
|
return Create<LexTokenImpl<LexTokenKind::Unknown>>(TextSpan(start, start + 1));
|
||||||
}
|
}
|
||||||
case u8'0':
|
case u8'0':
|
||||||
case u8'1':
|
case u8'1':
|
||||||
|
|
Loading…
Reference in New Issue