This commit is contained in:
Aleksey Kladov 2018-01-28 23:14:00 +03:00
parent c23a2519e1
commit 55e2a478be
3 changed files with 5 additions and 4 deletions

View file

@ -9,8 +9,9 @@ pub(super) fn mod_contents(p: &mut Parser, stop_on_r_curly: bool) {
}
}
pub(super) const ITEM_FIRST: TokenSet =
token_set![EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND];
pub(super) const ITEM_FIRST: TokenSet = token_set![
EXTERN_KW, MOD_KW, USE_KW, STRUCT_KW, ENUM_KW, FN_KW, PUB_KW, POUND
];
fn item(p: &mut Parser) {
let item = p.start();

View file

@ -59,7 +59,7 @@ pub(super) fn enum_item(p: &mut Parser) {
p.bump();
expressions::expr(p);
}
_ => ()
_ => (),
}
var.complete(p, ENUM_VARIANT);
} else {

View file

@ -118,7 +118,7 @@ fn has_short_text(kind: SyntaxKind) -> bool {
use syntax_kinds::*;
match kind {
IDENT | LIFETIME => true,
_ => false
_ => false,
}
}