diff options
author | Edwin Cheng <[email protected]> | 2020-04-18 20:24:17 +0100 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-04-18 20:24:17 +0100 |
commit | a1b5cf81ebcac15299cc612b49023bb418507027 (patch) | |
tree | f1e34af80f87a4628731cbb31c58c3784333e877 /crates/ra_mbe/src/syntax_bridge.rs | |
parent | b949500126f6bd3723d22541adb2f7c8aae206a4 (diff) |
Convert bool to ident instead of literal in mbe
Diffstat (limited to 'crates/ra_mbe/src/syntax_bridge.rs')
-rw-r--r-- | crates/ra_mbe/src/syntax_bridge.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/syntax_bridge.rs b/crates/ra_mbe/src/syntax_bridge.rs index 70899bc5d..2b4390eb2 100644 --- a/crates/ra_mbe/src/syntax_bridge.rs +++ b/crates/ra_mbe/src/syntax_bridge.rs | |||
@@ -376,7 +376,7 @@ trait TokenConvertor { | |||
376 | }; | 376 | }; |
377 | } | 377 | } |
378 | let leaf: tt::Leaf = match k { | 378 | let leaf: tt::Leaf = match k { |
379 | T![true] | T![false] => make_leaf!(Literal), | 379 | T![true] | T![false] => make_leaf!(Ident), |
380 | IDENT => make_leaf!(Ident), | 380 | IDENT => make_leaf!(Ident), |
381 | k if k.is_keyword() => make_leaf!(Ident), | 381 | k if k.is_keyword() => make_leaf!(Ident), |
382 | k if k.is_literal() => make_leaf!(Literal), | 382 | k if k.is_literal() => make_leaf!(Literal), |