From 827faa123796987bf2d36cc36cde60595416361c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 16 Apr 2024 22:28:38 -0500 Subject: Don't error on empty input --- type.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/type.lua b/type.lua index baf9a67..e4fccc9 100644 --- a/type.lua +++ b/type.lua @@ -88,6 +88,7 @@ local function input_port_next_token (port, readtable) local token, token_type local c = port.buffer[1] + if not c then return nil end if readtable.chars[c] then token, token_type, port.buffer = readtable.chars[c](port.buffer) -- cgit 1.4.1-21-gabe81