From d1274f277907b4b7e45dd018f5617708ea37636d Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 28 Apr 2019 20:20:41 +0800 Subject: =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=87=8D=E5=A4=8Dfield?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/ast.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/src/parser/ast.lua') diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index f93870e4..72c441ca 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1206,11 +1206,14 @@ local Defs = { } end, EmmyField = function (access, fieldName, ...) - return { + local obj = { type = 'emmyField', access, fieldName, ... } + obj.start = obj[2].start + obj.finish = obj[3].finish + return obj end, EmmyGenericBlock = function (genericName, parentName) return { genericName, parentName } -- cgit v1.2.3