diff options
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r-- | crates/ra_syntax/src/parsing/lexer.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/crates/ra_syntax/src/parsing/lexer.rs b/crates/ra_syntax/src/parsing/lexer.rs index 926811d96..7a9bc355d 100644 --- a/crates/ra_syntax/src/parsing/lexer.rs +++ b/crates/ra_syntax/src/parsing/lexer.rs | |||
@@ -15,16 +15,16 @@ pub struct Token { | |||
15 | macro_rules! match_literal_kind { | 15 | macro_rules! match_literal_kind { |
16 | ($kind:expr) => { | 16 | ($kind:expr) => { |
17 | match $kind { | 17 | match $kind { |
18 | ra_rustc_lexer::LiteralKind::Int { .. } => INT_NUMBER, | 18 | ra_rustc_lexer::LiteralKind::Int { .. } => INT_NUMBER, |
19 | ra_rustc_lexer::LiteralKind::Float { .. } => FLOAT_NUMBER, | 19 | ra_rustc_lexer::LiteralKind::Float { .. } => FLOAT_NUMBER, |
20 | ra_rustc_lexer::LiteralKind::Char { .. } => CHAR, | 20 | ra_rustc_lexer::LiteralKind::Char { .. } => CHAR, |
21 | ra_rustc_lexer::LiteralKind::Byte { .. } => BYTE, | 21 | ra_rustc_lexer::LiteralKind::Byte { .. } => BYTE, |
22 | ra_rustc_lexer::LiteralKind::Str { .. } => STRING, | 22 | ra_rustc_lexer::LiteralKind::Str { .. } => STRING, |
23 | ra_rustc_lexer::LiteralKind::ByteStr { .. } => BYTE_STRING, | 23 | ra_rustc_lexer::LiteralKind::ByteStr { .. } => BYTE_STRING, |
24 | ra_rustc_lexer::LiteralKind::RawStr { .. } => RAW_STRING, | 24 | ra_rustc_lexer::LiteralKind::RawStr { .. } => RAW_STRING, |
25 | ra_rustc_lexer::LiteralKind::RawByteStr { .. } => RAW_BYTE_STRING, | 25 | ra_rustc_lexer::LiteralKind::RawByteStr { .. } => RAW_BYTE_STRING, |
26 | } | 26 | } |
27 | } | 27 | }; |
28 | } | 28 | } |
29 | 29 | ||
30 | /// Break a string up into its component tokens | 30 | /// Break a string up into its component tokens |