From 721fa266d37caad9dbcd60126816f9d85cef9b1e 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, 12 Nov 2019 20:16:24 +0800 Subject: =?UTF-8?q?=E7=BB=99=20emmy=20=E5=A4=9A=E8=A1=8C=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E5=81=9A=E4=B8=AA=E7=89=B9=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/parser/ast.lua | 9 ++++++++- 1 file changed, 8 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 3a91e42a..3d8b8ed8 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1466,9 +1466,16 @@ local Defs = { return emmyName end, EmmyComment = function (...) + local lines = {...} + for i = 2, #lines do + local line = lines[i] + if line:sub(1, 1) == '|' then + lines[i] = '\n' .. line:sub(2) + end + end return { type = 'emmyComment', - [1] = table.concat({...}, '\n'), + [1] = table.concat(lines, '\n'), } end, EmmyOption = function (options) -- cgit v1.2.3