summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--printtokens.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/printtokens.lua b/printtokens.lua
index bf52803..0b3b5b5 100644
--- a/printtokens.lua
+++ b/printtokens.lua
@@ -47,7 +47,7 @@ defs[-1] = function(state, token, rule)
         error("Unknown option: " .. token)
     end
 end
-defs['--'] = parser.selfify({[""] = defs[""]})
+defs['--'] = parser.selfify({[""] = defs[""], [parser.EOZ] = defs[parser.EOZ]})
 
 local state = parser.parse(defs, arg)
 local luatokens = require "luatokens"