maud/maud_macros
Chris Wong c7ab906ad9 Guard against trailing tokens in Rust exprs
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.
2015-03-27 13:57:58 +13:00
..
src Guard against trailing tokens in Rust exprs 2015-03-27 13:57:58 +13:00
tests Support if let 2015-03-15 16:23:19 +13:00
Cargo.toml Release v0.3.2 2015-03-21 13:40:08 +13:00