Skip to content

Commit

Permalink
Require word break after underscore token in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 9, 2016
1 parent 1271b29 commit f7922e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub mod parsing {
));

named!(token -> Token, alt!(
punct!("_") => { |_| Token::Underscore }
keyword!("_") => { |_| Token::Underscore }
|
punct!("&&") => { |_| Token::AndAnd } // must be before bin_op
|
Expand Down

0 comments on commit f7922e3

Please sign in to comment.