Update to syn master

This commit is contained in:
Alex Crichton 2017-12-27 07:56:38 -08:00
parent 42ec76a3ff
commit 9aa4e30859
2 changed files with 4 additions and 6 deletions

View file

@ -11,4 +11,3 @@ test = false
proc-macro2 = { version = "0.1", features = ["unstable"] }
quote = { git = 'https://github.com/dtolnay/quote' }
syn = { git = 'https://github.com/dtolnay/syn', features = ["full"] }
synom = { git = 'https://github.com/dtolnay/syn' }

View file

@ -14,9 +14,8 @@ extern crate proc_macro2;
extern crate proc_macro;
#[macro_use]
extern crate quote;
extern crate syn;
#[macro_use]
extern crate synom;
extern crate syn;
use proc_macro2::TokenStream;
@ -124,13 +123,13 @@ struct Invoc {
args: Vec<(syn::Ident, syn::Expr)>,
}
impl synom::Synom for Invoc {
impl syn::synom::Synom for Invoc {
named!(parse -> Self, map!(parens!(do_parse!(
instr: syn!(syn::Ident) >>
args: many0!(do_parse!(
syn!(syn::tokens::Comma) >>
syn!(syn::token::Comma) >>
name: syn!(syn::Ident) >>
syn!(syn::tokens::Eq) >>
syn!(syn::token::Eq) >>
expr: syn!(syn::Expr) >>
(name, expr)
)) >>