MCPcopy Create free account
hub / github.com/brimdata/super / skipMultiLine

Method skipMultiLine

sup/lexer.go:233–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231}
232
233func (l *Lexer) skipMultiLine() error {
234 for {
235 b, err := l.readByte()
236 if err != nil {
237 return err
238 }
239 for b == '*' {
240 b, err = l.readByte()
241 if err != nil {
242 return err
243 }
244 if b == '/' {
245 return nil
246 }
247 }
248 }
249}
250
251// scanString scans a quoted string presuming the first double quote has
252// already been matched and consumed from the input. scanString does not

Callers 1

skipSpaceMethod · 0.95

Calls 1

readByteMethod · 0.95

Tested by

no test coverage detected