mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
rustfmt
This commit is contained in:
parent
f4a6d92050
commit
073cf42391
1 changed files with 10 additions and 10 deletions
|
@ -15,16 +15,16 @@ pub struct Token {
|
||||||
macro_rules! match_literal_kind {
|
macro_rules! match_literal_kind {
|
||||||
($kind:expr) => {
|
($kind:expr) => {
|
||||||
match $kind {
|
match $kind {
|
||||||
ra_rustc_lexer::LiteralKind::Int { .. } => INT_NUMBER,
|
ra_rustc_lexer::LiteralKind::Int { .. } => INT_NUMBER,
|
||||||
ra_rustc_lexer::LiteralKind::Float { .. } => FLOAT_NUMBER,
|
ra_rustc_lexer::LiteralKind::Float { .. } => FLOAT_NUMBER,
|
||||||
ra_rustc_lexer::LiteralKind::Char { .. } => CHAR,
|
ra_rustc_lexer::LiteralKind::Char { .. } => CHAR,
|
||||||
ra_rustc_lexer::LiteralKind::Byte { .. } => BYTE,
|
ra_rustc_lexer::LiteralKind::Byte { .. } => BYTE,
|
||||||
ra_rustc_lexer::LiteralKind::Str { .. } => STRING,
|
ra_rustc_lexer::LiteralKind::Str { .. } => STRING,
|
||||||
ra_rustc_lexer::LiteralKind::ByteStr { .. } => BYTE_STRING,
|
ra_rustc_lexer::LiteralKind::ByteStr { .. } => BYTE_STRING,
|
||||||
ra_rustc_lexer::LiteralKind::RawStr { .. } => RAW_STRING,
|
ra_rustc_lexer::LiteralKind::RawStr { .. } => RAW_STRING,
|
||||||
ra_rustc_lexer::LiteralKind::RawByteStr { .. } => RAW_BYTE_STRING,
|
ra_rustc_lexer::LiteralKind::RawByteStr { .. } => RAW_BYTE_STRING,
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Break a string up into its component tokens
|
/// Break a string up into its component tokens
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue