mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Reformat
This commit is contained in:
parent
c23a2519e1
commit
55e2a478be
3 changed files with 5 additions and 4 deletions
|
@ -9,8 +9,9 @@ pub(super) fn mod_contents(p: &mut Parser, stop_on_r_curly: bool) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) const ITEM_FIRST: TokenSet =
|
pub(super) const ITEM_FIRST: TokenSet = token_set![
|
||||||
token_set![EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND];
|
EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND
|
||||||
|
];
|
||||||
|
|
||||||
fn item(p: &mut Parser) {
|
fn item(p: &mut Parser) {
|
||||||
let item = p.start();
|
let item = p.start();
|
||||||
|
|
|
@ -59,7 +59,7 @@ pub(super) fn enum_item(p: &mut Parser) {
|
||||||
p.bump();
|
p.bump();
|
||||||
expressions::expr(p);
|
expressions::expr(p);
|
||||||
}
|
}
|
||||||
_ => ()
|
_ => (),
|
||||||
}
|
}
|
||||||
var.complete(p, ENUM_VARIANT);
|
var.complete(p, ENUM_VARIANT);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -118,7 +118,7 @@ fn has_short_text(kind: SyntaxKind) -> bool {
|
||||||
use syntax_kinds::*;
|
use syntax_kinds::*;
|
||||||
match kind {
|
match kind {
|
||||||
IDENT | LIFETIME => true,
|
IDENT | LIFETIME => true,
|
||||||
_ => false
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue