mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-03 17:10:39 +00:00
Simplify parsing
This commit is contained in:
parent
5c3ccc5508
commit
ef02296b9f
2 changed files with 19 additions and 19 deletions
|
@ -30,8 +30,8 @@ const fn mask(kind: SyntaxKind) -> u128 {
|
|||
|
||||
#[macro_export]
|
||||
macro_rules! token_set {
|
||||
($($t:ident),*) => { TokenSet::empty()$(.union(TokenSet::singleton($t)))* };
|
||||
($($t:ident),* ,) => { token_set!($($t),*) };
|
||||
($($t:expr),*) => { TokenSet::empty()$(.union(TokenSet::singleton($t)))* };
|
||||
($($t:expr),* ,) => { token_set!($($t),*) };
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue