aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/expr_extensions.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/expr_extensions.rs b/crates/ra_syntax/src/ast/expr_extensions.rs
index 77cceb382..8bbd946c0 100644
--- a/crates/ra_syntax/src/ast/expr_extensions.rs
+++ b/crates/ra_syntax/src/ast/expr_extensions.rs
@@ -308,7 +308,7 @@ pub enum LiteralKind {
308 Byte, 308 Byte,
309 IntNumber { suffix: Option<SmolStr> }, 309 IntNumber { suffix: Option<SmolStr> },
310 FloatNumber { suffix: Option<SmolStr> }, 310 FloatNumber { suffix: Option<SmolStr> },
311 Bool, 311 Bool(bool),
312} 312}
313 313
314impl ast::Literal { 314impl ast::Literal {
@@ -355,7 +355,8 @@ impl ast::Literal {
355 LiteralKind::FloatNumber { suffix: Self::find_suffix(&text, &FLOAT_SUFFIXES) } 355 LiteralKind::FloatNumber { suffix: Self::find_suffix(&text, &FLOAT_SUFFIXES) }
356 } 356 }
357 STRING | RAW_STRING => LiteralKind::String, 357 STRING | RAW_STRING => LiteralKind::String,
358 T![true] | T![false] => LiteralKind::Bool, 358 T![true] => LiteralKind::Bool(true),
359 T![false] => LiteralKind::Bool(false),
359 BYTE_STRING | RAW_BYTE_STRING => LiteralKind::ByteString, 360 BYTE_STRING | RAW_BYTE_STRING => LiteralKind::ByteString,
360 CHAR => LiteralKind::Char, 361 CHAR => LiteralKind::Char,
361 BYTE => LiteralKind::Byte, 362 BYTE => LiteralKind::Byte,