1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-05-03 01:53:23 -07:00

fix line number in 'undefined define' error

This commit is contained in:
Connor Olding 2015-11-23 13:13:54 -08:00
parent bead0e5576
commit 3590093470

View File

@ -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