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