From 030828cab92a611226fc7226d8f8ccabe04a2075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Tue, 5 Jul 2022 17:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=85=A5JSON?= =?UTF-8?q?=E4=B8=8D=E5=AE=8C=E6=95=B4,=20=E8=AF=8D=E6=B3=95=E5=88=86?= =?UTF-8?q?=E6=9E=90=E4=B8=A2=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lexical.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lexical.go b/lexical.go index 334bd29..d52be1a 100644 --- a/lexical.go +++ b/lexical.go @@ -83,6 +83,14 @@ func (l *lexical) Parse() error { } } + if len(tmpStr) > 0 { + l.lexicalResult = append(l.lexicalResult, &lexicalNode{ + Val: tmpStr, + IsToken: false, + Type: NodeTypeString, + }) + } + return nil }