mirror of
https://github.com/Dummi26/mers.git
synced 2025-12-19 13:36:32 +01:00
make objects work better, especially destructuring
This commit is contained in:
@@ -83,6 +83,7 @@ pub enum EColor {
|
||||
BadCharInFunctionType,
|
||||
BadCharAtStartOfStatement,
|
||||
BadTypeFromParsed,
|
||||
ObjectDuplicateField,
|
||||
TypeAnnotationNoClosingBracket,
|
||||
TryBadSyntax,
|
||||
TryNoFunctionFound,
|
||||
|
||||
@@ -78,7 +78,7 @@ pub fn default_theme<C>(
|
||||
TryBadSyntax => hard_err,
|
||||
TypeAnnotationNoClosingBracket | BracketedRefTypeNoClosingBracket => missing,
|
||||
|
||||
BadTypeFromParsed => type_wrong_b,
|
||||
BadTypeFromParsed | ObjectDuplicateField => type_wrong_b,
|
||||
|
||||
// -- type-errors --
|
||||
IfConditionNotBool => type_wrong,
|
||||
|
||||
Reference in New Issue
Block a user