|
|
|
@ -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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|