summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-04-10 19:44:38 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-04-10 19:44:38 -0300
commit17fe400e8c76767689ed181b4928443b08f4f4e6 (patch)
treea0afc4ed8c592495c8e8e214102bbb8216746420
parent4cff82dd045c8acf5820768d7195327082d55950 (diff)
Fix --
-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"