summary refs log tree commit diff stats
path: root/printtokens.lua
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-04-15 22:38:40 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-04-15 22:38:40 -0300
commitaf3acfbb80bca7447af9fe0d4a34cf860163b218 (patch)
treea8cf3a183ea28f56156f6d7d7cf0580b2c240283 /printtokens.lua
parente5e653340114025675a0e4c088733111413af452 (diff)
Add stuff that doesn't work
Diffstat (limited to 'printtokens.lua')
-rw-r--r--printtokens.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/printtokens.lua b/printtokens.lua
index 0b3b5b5..62e8fd9 100644
--- a/printtokens.lua
+++ b/printtokens.lua
@@ -28,7 +28,7 @@ defs['-'] = function(state, token)
     state.file = io.stdin
     return "self"
 end
-defs[""] = function(state, token)
+defs[parser.FALLBACK] = function(state, token)
     if state.filename then
         error("Must specify only one filename")
     end
@@ -47,7 +47,7 @@ defs[-1] = function(state, token, rule)
         error("Unknown option: " .. token)
     end
 end
-defs['--'] = parser.selfify({[""] = defs[""], [parser.EOZ] = defs[parser.EOZ]})
+defs['--'] = parser.selfify({[parser.FALLBACK] = defs[parser.FALLBACK], [parser.EOZ] = defs[parser.EOZ]})
 
 local state = parser.parse(defs, arg)
 local luatokens = require "luatokens"