Skip to content

Commit

Permalink
MInor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Apr 15, 2024
1 parent fe3c858 commit f331858
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ti/lexer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ function lexer.tokenize(input)
i, j, token = input:find('^(%d*)', pos)

-- Optional real part
local ri, rj, rtoken = input:find('^(%.%d*)', j and j+1 or pos)
local ri, rj, rtoken = input:find('^(%.%d+)', j and j+1 or pos)
if ri then
i = i or ri
j = rj
token = (token or '')..rtoken
elseif j and input[j + 1] == '.' then
j = j + 1
end

if not i then return end
Expand Down

0 comments on commit f331858

Please sign in to comment.