aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/errors.rs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-23 16:05:17 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-23 16:05:17 +0100
commit2f40bc30185027a125f782e52b65bc65f1c37b9b (patch)
tree7011d3184b17ca7c5248bfd31f2dc8acc8f5ff1c /lib/xixanta/src/errors.rs
parent31ac0e214d43da3bb705c8f345f5afcb922cefac (diff)
downloadtools.nes-2f40bc30185027a125f782e52b65bc65f1c37b9b.tar.gz
tools.nes-2f40bc30185027a125f782e52b65bc65f1c37b9b.zip
Prevent early .end statements
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à <mikisabate@gmail.com>
Diffstat (limited to 'lib/xixanta/src/errors.rs')
-rw-r--r--lib/xixanta/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
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,
}