diff --git a/sql/scanner.go b/sql/scanner.go index ffd8a0ca..36d00c35 100644 --- a/sql/scanner.go +++ b/sql/scanner.go @@ -131,6 +131,8 @@ func (s *scanner) scan() (tok Token, lit string, val interface{}) { case '/': chn := s.next() switch { + case chn == '/': + return s.scanCommentSingle(ch) case chn == '*': return s.scanCommentMultiple(ch) case chn == ' ':