Fixed tick symbol resulting in panic

This commit is contained in:
PaddiM8 2021-09-22 15:04:21 +02:00 committed by PaddiM8
parent d9db16a7fb
commit 22bec9ff40

View File

@ -699,7 +699,11 @@ fn parse_identifier(context: &mut Context) -> Result<Expr, CalcError> {
}
}
split_into_variables(context, &identifier)
if identifier.pure_name.len() > 1 {
split_into_variables(context, &identifier)
} else {
Err(CalcError::UndefinedVar(identifier.full_name))
}
}
}