summary refs log tree commit diff stats
path: root/dirtycompiler.lua
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2019-07-31 00:10:12 -0300
committerSoniEx2 <endermoneymod@gmail.com>2019-07-31 00:10:12 -0300
commit50fefc6d3f292763386322592965f9003f1bcf71 (patch)
tree246f7ac8f40a0b12d852c6ef2ce318671d477380 /dirtycompiler.lua
parent5aa22fbbb10e0388c5f0616751cd2cc089147627 (diff)
Fix handling of empty files v1.0.0
Diffstat (limited to 'dirtycompiler.lua')
-rw-r--r--dirtycompiler.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/dirtycompiler.lua b/dirtycompiler.lua
index 3ece694..4d61538 100644
--- a/dirtycompiler.lua
+++ b/dirtycompiler.lua
@@ -122,6 +122,7 @@ defs[FINISH] = finish
 
 defs[parser.EOZ] = function(state, token)
     local results = state.results
+    if not results then return {} end -- empty, don't waste time processing unnecessary things
     -- flip results around
     local len = results.n
     for i=1, len do