From 04aabac66da8a50d2c1191dda5243975d4f9cc6e Mon Sep 17 00:00:00 2001 From: xubo Date: Mon, 13 Dec 2021 13:57:46 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Demptytoken=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/golang/text_parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/golang/text_parser.go b/api/golang/text_parser.go index 7abbaa8..b932ba8 100644 --- a/api/golang/text_parser.go +++ b/api/golang/text_parser.go @@ -18,7 +18,7 @@ func selectAction(self *ulexer.Lexer, mlist []ulexer.Matcher, alist []MatchActio for index, m := range mlist { tk := self.Read(m) - if tk != ulexer.EmptyToken { + if tk != nil { action := alist[index] if action != nil {