From 2f40bc30185027a125f782e52b65bc65f1c37b9b Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 23 Dec 2024 16:05:17 +0100 Subject: Prevent early .end statements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevent a missmatch on .end{macro,proc,scope}. This was more or less already covered when there was a bad context_pop call, but it was prone to errors. Check this in eval_context as it should've always been done. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/errors.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/xixanta/src/errors.rs') diff --git a/lib/xixanta/src/errors.rs b/lib/xixanta/src/errors.rs index 63f925e..84fca6a 100644 --- a/lib/xixanta/src/errors.rs +++ b/lib/xixanta/src/errors.rs @@ -38,6 +38,7 @@ pub enum ContextErrorReason { BadScope, Label, Bounds, + BadEnd, Other, } -- cgit v1.2.3