diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-28 20:52:56 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-28 20:52:56 +0200 |
| commit | c6e771fff0515d3a8e0cbc928c103b6c86f22c0f (patch) | |
| tree | 6b3130e33680d5beb1e6ab9bba818352e83657dc /src/parser.zig | |
| parent | 7b1b855ed68b4fc72d01de170226ea0fcc74a512 (diff) | |
feat(): support quote
Diffstat (limited to 'src/parser.zig')
| -rw-r--r-- | src/parser.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parser.zig b/src/parser.zig index c8f1c81..e7a3aff 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -9,6 +9,7 @@ const link = @import("link.zig"); const list = @import("list.zig"); const code = @import("code.zig"); const callout = @import("callout.zig"); +const quote = @import("quote.zig"); pub const Error = error{FeatureNotSupported} || Lexer.Error || @@ -19,6 +20,7 @@ pub const Error = error{FeatureNotSupported} || link.ImageError || code.Error || callout.Error || + quote.Error || Allocator.Error; pub const Document = Element.Root; @@ -46,13 +48,14 @@ fn gen(parent: Allocator, l: *Lexer) Error!*Document { .list_unordored => try list.parseUnordored(alloc, l), .image => try link.parseImage(alloc, l), .code_block => try code.parse(alloc, l), + .quote => try quote.parse(alloc, l), .weak_delimiter, .strong_delimiter => { l.consume(); continue :base; }, else => // block paragraph - if (it.kind.isPar()) + if (it.kind.isInParagraph()) try paragraph.parse(alloc, l) else return Error.FeatureNotSupported, |
