diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 17:33:31 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-30 17:33:31 +0200 |
| commit | c40941359d46468ecd0b71919e34a1c481c7bee2 (patch) | |
| tree | 15a96ebf103c2d861f8a93f23ad96c66ecf4eb35 /mardown/lexer.go | |
| parent | de803487db3f02946eee753d50db00e625888049 (diff) | |
feat(markdown): simple ast with header base
Diffstat (limited to 'mardown/lexer.go')
| -rw-r--r-- | mardown/lexer.go | 6 |
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] } |
