mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Better recovery in use foo::;
This commit is contained in:
parent
0e1cda3079
commit
ef462ed6af
2 changed files with 17 additions and 7 deletions
|
@ -27,8 +27,20 @@ pub(super) fn mod_contents(p: &mut Parser, stop_on_r_curly: bool) {
|
|||
}
|
||||
|
||||
pub(super) const ITEM_RECOVERY_SET: TokenSet = token_set![
|
||||
FN_KW, STRUCT_KW, ENUM_KW, IMPL_KW, TRAIT_KW, CONST_KW, STATIC_KW, LET_KW, MOD_KW, PUB_KW,
|
||||
CRATE_KW, USE_KW, MACRO_KW
|
||||
FN_KW,
|
||||
STRUCT_KW,
|
||||
ENUM_KW,
|
||||
IMPL_KW,
|
||||
TRAIT_KW,
|
||||
CONST_KW,
|
||||
STATIC_KW,
|
||||
LET_KW,
|
||||
MOD_KW,
|
||||
PUB_KW,
|
||||
CRATE_KW,
|
||||
USE_KW,
|
||||
MACRO_KW,
|
||||
T![;],
|
||||
];
|
||||
|
||||
pub(super) fn item_or_macro(p: &mut Parser, stop_on_r_curly: bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue