fix: don't reset pos on full_ident (#188)

local `pos` is nil.  the position is advanced on `self:full_ident()`

Signed-off-by: Javier Guerra <javier@guerrag.com>
This commit is contained in:
Javier
2022-03-25 09:17:35 -05:00
committed by GitHub
parent 2f2a37bb3c
commit 477581fb2e
-1
View File
@@ -227,7 +227,6 @@ function Lexer:structure(opt)
local pos, name, npos = self "^%s*()(%b[])()"
if not pos then
name = self:full_ident "field name"
self.pos = pos
else
self.pos = npos
end