mirror of
https://github.com/vxcontrol/lualibs-protobuf.git
synced 2026-07-01 09:16:28 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user