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 {