From cf6f08d1602841f8c337dc64365e2dcde1e4c528 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 19 Apr 2026 17:55:42 +0200 Subject: fix(ast): error if title contains modifier --- src/root.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/root.zig') diff --git a/src/root.zig b/src/root.zig index bd183ff..830ba1c 100644 --- a/src/root.zig +++ b/src/root.zig @@ -9,6 +9,7 @@ fn getErrorCode(err: Error) u8 { Error.FeatureNotSupported => 3, Error.ModifierNotClosed => 4, Error.InvalidTitleContent => 5, + Error.IllegalPlacement => 6, }; } @@ -20,6 +21,7 @@ export fn getErrorString(code: u8) [*:0]const u8 { 3 => "feature not supported", 4 => "modifier not closed", 5 => "invalid title content", + 6 => "illegal placement", else => unreachable, }; } -- cgit v1.2.3