You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was pulling my hair out when trying to get something like the following to work:
type X = unit {
a: b"begin-of-X";
b: bytes &size=10;
};
type Foo = unit {}
xs: (X &synchronize)[];
on %synced { confirm; }
};
I just couldn't get the parser to synchronize. Then, @Mohan-Dhawan suggested to use a regex for a. To my surprise that worked! However, given that the above is taken from the docs, requiring a regex feels like a bug.
The text was updated successfully, but these errors were encountered:
Do you have an example input which shows this problem? I tried the following and it seems to work (successful synchronization shown in log, two final vector elements present):
In 7c18597 for #1231 we added code to
handle advance failures in trial mode when synchronizing on regexps, but
missed adding the same support for literals. This patch adds that
missing part.
Closes#1464.
(cherry picked from commit 30903c8)
I was pulling my hair out when trying to get something like the following to work:
I just couldn't get the parser to synchronize. Then, @Mohan-Dhawan suggested to use a regex for
a
. To my surprise that worked! However, given that the above is taken from the docs, requiring a regex feels like a bug.The text was updated successfully, but these errors were encountered: