mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Convert bool to ident instead of literal in mbe
This commit is contained in:
parent
b949500126
commit
a1b5cf81eb
5 changed files with 47 additions and 14 deletions
|
@ -376,7 +376,7 @@ trait TokenConvertor {
|
|||
};
|
||||
}
|
||||
let leaf: tt::Leaf = match k {
|
||||
T![true] | T![false] => make_leaf!(Literal),
|
||||
T![true] | T![false] => make_leaf!(Ident),
|
||||
IDENT => make_leaf!(Ident),
|
||||
k if k.is_keyword() => make_leaf!(Ident),
|
||||
k if k.is_literal() => make_leaf!(Literal),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue