修复输入JSON不完整, 词法分析丢数据问题

This commit is contained in:
白茶清欢 2022-07-05 17:13:10 +08:00
parent b85023e57f
commit 030828cab9

View File

@ -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
}