commit | b5a7b144a3e52a988c51046a776aa7c06693ead1 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Tue Sep 13 22:46:39 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Tue Sep 13 23:57:36 2016 -0700 |
tree | b9161cd6ea41af78e76ee092f29e86da669105a8 | |
parent | 6c9f5b6426c4302281c541059ce4f739427bf98c [diff] [blame] |
Vendor a simplified nom
diff --git a/src/ident.rs b/src/ident.rs index d504465..4bb8878 100644 --- a/src/ident.rs +++ b/src/ident.rs
@@ -48,9 +48,9 @@ ch.is_alphanumeric() || ch == '_' } - named!(pub ident<&str, Ident>, preceded!( + named!(pub ident -> Ident, preceded!( option!(multispace), - map!(take_while1_s!(ident_ch), Into::into) + map!(take_while1!(ident_ch), Into::into) )); }