diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gencode.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gencode.js b/tools/gencode.js index efe1556..4f5f421 100644 --- a/tools/gencode.js +++ b/tools/gencode.js @@ -12,6 +12,8 @@ function emit(line) { for (let i = 1; i < line.length; ++i) { if (typeof line[i] === "string" && line[i][0] === "(" && !line[i].match(/\)=>/)) line[i] = "()=>" + line[i] + if (typeof line[i] === "string" && line[i][0] === "`") + line[i] = "()=>" + line[i] } console.log("\t[ " + line.join(", ") + " ],") } |