mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
parameter parsing does not destroy blocks
This commit is contained in:
parent
b0aac1ca98
commit
f104458d45
10 changed files with 70 additions and 4 deletions
|
@ -13,7 +13,7 @@ use super::*;
|
|||
// let _ = b"e";
|
||||
// let _ = br"f";
|
||||
// }
|
||||
const LITERAL_FIRST: TokenSet =
|
||||
pub(crate) const LITERAL_FIRST: TokenSet =
|
||||
token_set![TRUE_KW, FALSE_KW, INT_NUMBER, FLOAT_NUMBER, BYTE, CHAR,
|
||||
STRING, RAW_STRING, BYTE_STRING, RAW_BYTE_STRING];
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
mod atom;
|
||||
|
||||
use super::*;
|
||||
pub(super) use self::atom::literal;
|
||||
pub(super) use self::atom::{literal, LITERAL_FIRST};
|
||||
|
||||
const EXPR_FIRST: TokenSet = LHS_FIRST;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue