aboutsummaryrefslogtreecommitdiff
path: root/mardown/lexer.go
diff options
context:
space:
mode:
Diffstat (limited to 'mardown/lexer.go')
-rw-r--r--mardown/lexer.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/mardown/lexer.go b/mardown/lexer.go
index 62978ab..afac4d7 100644
--- a/mardown/lexer.go
+++ b/mardown/lexer.go
@@ -32,8 +32,12 @@ type lexers struct {
lexers []lexer
}
-func (l *lexers) Next() lexer {
+func (l *lexers) Next() bool {
l.current++
+ return l.Finished()
+}
+
+func (l *lexers) Current() lexer {
return l.lexers[l.current]
}