diff options
author | Case Duckworth | 2024-04-09 21:01:50 -0500 |
---|---|---|
committer | Case Duckworth | 2024-04-09 21:01:50 -0500 |
commit | 2b68619c9a9f5a2b2a88b8b651ec94412b5d16a3 (patch) | |
tree | a9e854d742b657402fd35321f6d6e1de12ae3142 /read.lua | |
parent | Add dump and run into circular dependencies (diff) | |
download | lam-2b68619c9a9f5a2b2a88b8b651ec94412b5d16a3.tar.gz lam-2b68619c9a9f5a2b2a88b8b651ec94412b5d16a3.zip |
Uh
Diffstat (limited to 'read.lua')
-rw-r--r-- | read.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/read.lua b/read.lua index 35f5b57..332c919 100644 --- a/read.lua +++ b/read.lua | |||
@@ -193,6 +193,8 @@ function m.scan (cs) | |||
193 | token, toktype, cs = m.readtable[cs[1]](cs) | 193 | token, toktype, cs = m.readtable[cs[1]](cs) |
194 | return token, toktype, cs | 194 | return token, toktype, cs |
195 | elseif cs[1]:match("%s") then | 195 | elseif cs[1]:match("%s") then |
196 | --- should this just continue the loop? | ||
197 | -- i.e., remove `return' | ||
196 | return consume_whitespace(cs) | 198 | return consume_whitespace(cs) |
197 | elseif cs[1]:match("[%d.+-]") then | 199 | elseif cs[1]:match("[%d.+-]") then |
198 | -- numbers, +, -, ., ... | 200 | -- numbers, +, -, ., ... |