properly handle escape characters

main
Nick Dumas 1 year ago
parent b9049f340e
commit cb9786ece8

@ -37,6 +37,7 @@ func lexIdent(l *Lexer) stateFn {
L.Debug("stepping through lexIdent") L.Debug("stepping through lexIdent")
switch { switch {
case isEscape(s): case isEscape(s):
l.next()
l.next() l.next()
continue continue
case isCloseLink(s): case isCloseLink(s):
@ -93,6 +94,7 @@ func lexText(l *Lexer) stateFn {
L.Debug("stepping through lexText") L.Debug("stepping through lexText")
switch { switch {
case isEscape(s): case isEscape(s):
l.next()
l.next() l.next()
continue continue
case isOpenLink(s): case isOpenLink(s):

Loading…
Cancel
Save