mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-19 13:36:32 +01:00
fix some edge cases in parser
This commit is contained in:
@@ -81,6 +81,7 @@ pub enum EColor {
|
||||
AsTypeTypeAnnotation,
|
||||
BadCharInTupleType,
|
||||
BadCharInFunctionType,
|
||||
BadCharAtStartOfStatement,
|
||||
BadTypeFromParsed,
|
||||
TypeAnnotationNoClosingBracket,
|
||||
TryBadSyntax,
|
||||
|
||||
@@ -70,8 +70,7 @@ pub fn default_theme<C>(
|
||||
UnknownVariable => hard_err,
|
||||
BackslashEscapeUnknown => hard_err,
|
||||
BackslashEscapeEOF | StringEOF | TypeEOF => missing,
|
||||
BadCharInTupleType => hard_err,
|
||||
BadCharInFunctionType => hard_err,
|
||||
BadCharInTupleType | BadCharInFunctionType | BadCharAtStartOfStatement => hard_err,
|
||||
TryBadSyntax => hard_err,
|
||||
TypeAnnotationNoClosingBracket | BracketedRefTypeNoClosingBracket => missing,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user