From fa80f3ceea36cb7e0ca2538718f1c5184cf91d50 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sat, 1 Jul 2023 18:06:49 -0400 Subject: [PATCH] don't need this anymore --- states.go | 32 -------------------------------- 1 file changed, 32 deletions(-) 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 - } - } -} - - -*/