Currently, the following parses: $for x in y.iter() #$%!INVALID~SYNTAX!^&* { } This is because the Rust parser only consumes enough to parse a single expression (in this case `y.iter()`), ignoring all the nonsense after it. With this patch, we check that the parser has consumed *all* tokens before yielding a result, ensuring that invalid syntax (like the snippet above) is not ignored. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |