From 2f1fa811972bc4ec23ec7b2a9d7c21480388c072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 4 Jul 2022 18:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E6=9E=90=E8=AF=8D?= =?UTF-8?q?=E6=B3=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lexical.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lexical.go b/lexical.go index 7208745..394aaf3 100644 --- a/lexical.go +++ b/lexical.go @@ -45,6 +45,7 @@ func parseLexical(jsonData string) ([]lexicalNode, error) { Val: currentChar, IsToken: true, }) + tmpStr = "" } else { // 不是关键词, 继续向后走 tmpStr = tmpStr + currentChar