Hack-pipe proposal with % topic token (#13416)
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
This commit is contained in:
committed by
Nicolò Ribaudo
parent
cd4b3fbffe
commit
35e4e1f067
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user