summaryrefslogtreecommitdiffhomepage
path: root/lexer.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-11-03 11:29:10 +0100
committerJo-Philipp Wich <jo@mein.io>2020-11-03 11:29:10 +0100
commite8e7692f169ae00434f3e0959f104d95284d2891 (patch)
tree8e4507bd6abe5a31c3538e45f0f6729028856826 /lexer.c
parent3cf36bbefa1c659861ef3376f3c4d97f1c9db844 (diff)
syntax: implement ES6-like rest parameters for variadic functions
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c1
1 files changed, 1 insertions, 0 deletions
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 },