From 6fddbbf0b34729327670ac1687d88b38739e12a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 14 Sep 2021 21:04:50 +0800 Subject: update --- script/parser/newparser.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index e1d98d87..16bcd6a0 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -1589,7 +1589,7 @@ local function parseSimple(node, funcName) field = field } if field then - field.parent = node + field.parent = getfield field.type = 'field' else pushError { @@ -1619,7 +1619,7 @@ local function parseSimple(node, funcName) method = method } if method then - method.parent = node + method.parent = getmethod method.type = 'method' else pushError { @@ -3462,9 +3462,9 @@ local function parseLua() pushChunk(main) createLocal{ type = 'local', - start = 0, - finish = 0, - effect = 0, + start = -1, + finish = -1, + effect = -1, parent = main, tag = '_ENV', special= '_G', -- cgit v1.2.3