mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
b2/: make the match name after "break" and "continue" optional
If the name is omitted, we jump back / out of the current block.
This commit is contained in:
@@ -284,6 +284,8 @@ struct parent {
|
||||
static const struct subst *resolve_jump(const char *name,
|
||||
const struct parent *parent)
|
||||
{
|
||||
if (!name)
|
||||
return parent->sub;
|
||||
while (parent) {
|
||||
assert(parent->sub->type == st_match);
|
||||
if (name == parent->sub->u.match.src)
|
||||
|
||||
Reference in New Issue
Block a user