commit | f7922e36e946062325fe53b4ae2b34b4e9ace41f | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Oct 08 22:16:04 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Oct 08 22:16:04 2016 -0700 |
tree | 0f6ac1b5037a80e39a3d9645d2a711558529b991 | |
parent | 1271b2961a53e56996e38a6e1a8aaad3fdef42b9 [diff] |
Require word break after underscore token in macro
diff --git a/src/mac.rs b/src/mac.rs index c1b9a5d..f06fb71 100644 --- a/src/mac.rs +++ b/src/mac.rs
@@ -155,7 +155,7 @@ )); named!(token -> Token, alt!( - punct!("_") => { |_| Token::Underscore } + keyword!("_") => { |_| Token::Underscore } | punct!("&&") => { |_| Token::AndAnd } // must be before bin_op |