From e8e7692f169ae00434f3e0959f104d95284d2891 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 3 Nov 2020 11:29:10 +0100 Subject: syntax: implement ES6-like rest parameters for variadic functions Signed-off-by: Jo-Philipp Wich --- lexer.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lexer.c') diff --git a/lexer.c b/lexer.c index f14a944..b59d031 100644 --- a/lexer.c +++ b/lexer.c @@ -68,6 +68,7 @@ static const struct token tokens[] = { { T_RSTM, "-%}", 3 }, { T_EQS, "===", 3 }, { T_NES, "!==", 3 }, + { T_ELLIP, "...", 3 }, { T_AND, "&&", 2 }, { T_ASADD, "+=", 2 }, { T_ASBAND, "&=", 2 }, -- cgit v1.2.3