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

Function doubleDashCommentStateBuilder

states.go:146–161  ·  view source on GitHub ↗
(ret state)

Source from the content-addressed store, hash-verified

144}
145
146func doubleDashCommentStateBuilder(ret state) state {
147 return func(l *lexer) state {
148 l.start = l.pos + 3
149
150 for {
151 b := l.next()
152 if b == eof || b == lf {
153 break
154 }
155 }
156
157 l.emit(TComment)
158
159 return ret
160 }
161}
162
163func blockCommentStateBuilder(ret state) state {
164 return func(l *lexer) state {

Callers 1

StartStateFunction · 0.85

Calls 2

nextMethod · 0.80
emitMethod · 0.80

Tested by

no test coverage detected