MCPcopy
hub / github.com/cortesi/modd / lexBlockStart

Function lexBlockStart

conf/lex.go:406–413  ·  view source on GitHub ↗
(l *lexer)

Source from the content-addressed store, hash-verified

404}
405
406func lexBlockStart(l *lexer) stateFn {
407 n := l.next()
408 if n == '{' {
409 l.emit(itemLeftParen)
410 return lexInside
411 }
412 return l.errorf("invalid input")
413}
414
415func lexInside(l *lexer) stateFn {
416 for {

Callers

nothing calls this directly

Calls 3

emitMethod · 0.80
nextMethod · 0.45
errorfMethod · 0.45

Tested by

no test coverage detected