summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-07 15:39:17 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commit0fe9edb7f7a43cfd72c6ec34004ec68f36797908 (patch)
tree3f2f9922e47181b5ac9622deb292e14785ccd015 /tools
parentbe261dc88a1f27cb2e404eab65e6aef17c024997 (diff)
downloadandean-abyss-0fe9edb7f7a43cfd72c6ec34004ec68f36797908.tar.gz
Event pass.
Diffstat (limited to 'tools')
-rw-r--r--tools/gencode.js2
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(", ") + " ],")
}