mirror of
https://github.com/notwa/lips
synced 2025-03-09 19:32:49 -07:00
fix line number in 'undefined define' error
This commit is contained in:
parent
bead0e5576
commit
3590093470
1 changed files with 1 additions and 0 deletions
1
lips.lua
1
lips.lua
|
@ -977,6 +977,7 @@ function Parser:tokenize()
|
|||
t.tt = 'NUM'
|
||||
t.tok = self.defines[t.tok]
|
||||
if t.tok == nil then
|
||||
self.line = t.line
|
||||
self:error('undefined define') -- uhhh nice wording
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue