aboutsummaryrefslogtreecommitdiff
path: root/mardown/lexer.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 21:29:07 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-30 21:29:07 +0200
commitc4ba44b1c3e066f98ccc406c15a8c1de170e4709 (patch)
treeb4974a5acdf11c0aaddb0d5d9526bfa62e35b9c9 /mardown/lexer.go
parent3d3ccdec245b5a5d1c1f01d0b6972959332c882e (diff)
fix(markdown): bad condition in finished lexer and missing return value in ast
Diffstat (limited to 'mardown/lexer.go')
-rw-r--r--mardown/lexer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mardown/lexer.go b/mardown/lexer.go
index 7ab393f..4eaaf16 100644
--- a/mardown/lexer.go
+++ b/mardown/lexer.go
@@ -42,7 +42,7 @@ func (l *lexers) Current() lexer {
}
func (l *lexers) Finished() bool {
- return l.current >= len(l.lexers)-1
+ return l.current >= len(l.lexers)
}
func (l *lexers) String() string {