|
|
@ -2,6 +2,8 @@ package wikilink
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"go.uber.org/zap"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
func isOpenLink(s string) bool {
|
|
|
|
func isOpenLink(s string) bool {
|
|
|
@ -27,6 +29,9 @@ func isBlockRef(s string) bool {
|
|
|
|
func lexIdent(l *Lexer) stateFn {
|
|
|
|
func lexIdent(l *Lexer) stateFn {
|
|
|
|
for {
|
|
|
|
for {
|
|
|
|
r := l.next()
|
|
|
|
r := l.next()
|
|
|
|
|
|
|
|
l.L.Named("lexIdent").Debug("stepping through lexIdent",
|
|
|
|
|
|
|
|
zap.String("r", string(r)),
|
|
|
|
|
|
|
|
)
|
|
|
|
s := l.input[l.GetPos():]
|
|
|
|
s := l.input[l.GetPos():]
|
|
|
|
if r == '\\' { // i think this will handle escape characters?
|
|
|
|
if r == '\\' { // i think this will handle escape characters?
|
|
|
|
break
|
|
|
|
break
|
|
|
|