MCPcopy Create free account
hub / github.com/donatj/sqlread / blockCommentStateBuilder

Function blockCommentStateBuilder

states.go:163–179  ·  view source on GitHub ↗
(ret state)

Source from the content-addressed store, hash-verified

161}
162
163func blockCommentStateBuilder(ret state) state {
164 return func(l *lexer) state {
165 l.pos += 2
166 l.start = l.pos
167
168 for {
169 if l.hasPrefix("*/") {
170 l.emit(TComment)
171 l.pos += 2
172 break
173 }
174 l.next()
175 }
176
177 return ret
178 }
179}
180
181func untilSemiStateBuilder(emit lexItemType, ret state) state {
182 return func(l *lexer) state {

Callers 1

StartStateFunction · 0.85

Calls 3

hasPrefixMethod · 0.80
emitMethod · 0.80
nextMethod · 0.80

Tested by

no test coverage detected