From c40941359d46468ecd0b71919e34a1c481c7bee2 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Tue, 30 Sep 2025 17:33:31 +0200 Subject: feat(markdown): simple ast with header base --- mardown/lexer.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mardown/lexer.go') 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] } -- cgit v1.2.3