diff --git a/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs b/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs index 4e95f28..b17a6a3 100644 --- a/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs +++ b/mps-interpreter/src/lang/vocabulary/item_ops/variable_declare.rs @@ -55,7 +55,7 @@ pub struct VariableDeclareItemOpFactory; impl MpsItemOpFactory for VariableDeclareItemOpFactory { fn is_item_op(&self, tokens: &VecDeque) -> bool { - tokens.len() > 2 && tokens[0].is_let() && tokens[1].is_name() + tokens.len() >= 2 && tokens[0].is_let() && tokens[1].is_name() } fn build_item_op(