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 }