diff --git a/states.go b/states.go index dc04950..07fe9b1 100644 --- a/states.go +++ b/states.go @@ -106,35 +106,3 @@ func lexCloseLink(l *Lexer) stateFn { return lexText } - -/* -func lexInsideLink(l *Lexer) stateFn { - log.Println("entering lexInsideLink") - - for { - if strings.HasPrefix(l.input[l.pos:], CloseLink) { - return lexCloseLink - } - - r := l.next() - log.Printf("inspecting %q\n", string(r)) - - switch { - case r == EOF: - case r == '\n': - return l.errorf("unclosed link") - case r == '#': - l.emit(ItemText) - if l.peek() = '^' { return lexBlockRef } - - return lexHeading - case r == '|': - l.emit(ItemText) - - return lexAlias - } - } -} - - -*/