[#4] Fix anotations discarded in some instructions
Description
Problem: The cursor jumps a bit oddly around the instructions fixed in morley!727 (merged) when they are wrapped in annotations, and the stack is not properly shown.
Solution: Only yield a snapshot if we just entered its nested annotation instruction (or if there wasn't an annotation in the first place) and have the runInner function set its position before executing the instruction. Also, fix a small issue with MapName found while testing this MR.
This depends on morley!727 (merged).
Related issue(s)
Resolves #4 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Dependencies
-
We depend only on package versions that have been released on hackage (i.e., we don't fetch dependencies from git repositories). Failing that, we depend only on commits from the project's master
branch, and not from any other branch.
-
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Heitor Toledo Lassarote de Paula