aboutsummaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-19 21:18:54 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-19 21:18:54 +0200
commitfe3e8fe67b7f655699be321796af70d4bdff230f (patch)
tree4aa194ade2c306720805dea76761bf608b70c06e /src/root.zig
parent6aafc90f32d014390b29b77c6d53575793255847 (diff)
feat(ast): parse link
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/root.zig b/src/root.zig
index 830ba1c..152170e 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -10,6 +10,7 @@ fn getErrorCode(err: Error) u8 {
Error.ModifierNotClosed => 4,
Error.InvalidTitleContent => 5,
Error.IllegalPlacement => 6,
+ Error.InvalidLink => 7,
};
}
@@ -22,6 +23,7 @@ export fn getErrorString(code: u8) [*:0]const u8 {
4 => "modifier not closed",
5 => "invalid title content",
6 => "illegal placement",
+ 7 => "invalid link",
else => unreachable,
};
}