From e41a525f25d61c72b68e55fe88cb657aaf24ca79 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 12 Dec 2022 18:41:45 +0800 Subject: [PATCH] Update compiler.h --- src/compiler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler.h b/src/compiler.h index cc93ada8..4ac15993 100644 --- a/src/compiler.h +++ b/src/compiler.h @@ -617,17 +617,17 @@ __LISTCOMP: if(match(TK("]"))){ emitCode(OP_LOAD_NONE); }else{ - EXPR(); + EXPR_TUPLE(); consume(TK("]")); } emitCode(OP_BUILD_SLICE); }else{ - EXPR(); + EXPR_TUPLE(); if(match(TK(":"))){ if(match(TK("]"))){ emitCode(OP_LOAD_NONE); }else{ - EXPR(); + EXPR_TUPLE(); consume(TK("]")); } emitCode(OP_BUILD_SLICE);