aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorEvgenii P <[email protected]>2019-08-09 08:23:13 +0100
committerEvgenii P <[email protected]>2019-08-09 08:23:13 +0100
commit073cf423916c8854e060a1127856dc4736fe83b1 (patch)
tree439d18416d1b905fb2a6863f0e254ba3515ccf80 /crates
parentf4a6d92050fd1e3b3a92883f0cbde04876fe12dc (diff)
rustfmt
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_syntax/src/parsing/lexer.rs20
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 {
15macro_rules! match_literal_kind { 15macro_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