Hack-pipe proposal with % topic token (#13416)

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
This commit is contained in:
J. S. Choi
2021-07-06 13:21:00 -04:00
committed by Nicolò Ribaudo
parent cd4b3fbffe
commit 35e4e1f067
342 changed files with 6406 additions and 62 deletions

View File

@@ -155,7 +155,7 @@ export const types: { [name: string]: TokenType } = {
bitShift: createBinop("<</>>/>>>", 8),
plusMin: new TokenType("+/-", { beforeExpr, binop: 9, prefix, startsExpr }),
// startsExpr: required by v8intrinsic plugin
modulo: new TokenType("%", { beforeExpr, binop: 10, startsExpr }),
modulo: new TokenType("%", { binop: 10, startsExpr }),
// unset `beforeExpr` as it can be `function *`
star: new TokenType("*", { binop: 10 }),
slash: createBinop("/", 10),