diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-11-03 11:29:10 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-11-03 11:29:10 +0100 |
commit | e8e7692f169ae00434f3e0959f104d95284d2891 (patch) | |
tree | 8e4507bd6abe5a31c3538e45f0f6729028856826 /lexer.c | |
parent | 3cf36bbefa1c659861ef3376f3c4d97f1c9db844 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 }, |