Fix parsing of contextual_keyword union

This commit is contained in:
DJMcNab 2018-12-20 19:46:03 +00:00
parent 61dcaa6add
commit 55ebe449c9

View File

@ -202,7 +202,7 @@ fn items_without_modifiers(p: &mut Parser) -> Option<SyntaxKind> {
} }
STRUCT_DEF STRUCT_DEF
} }
IDENT if p.at_contextual_kw("union") => { IDENT if p.at_contextual_kw("union") && p.nth(1) == IDENT => {
// test union_items // test union_items
// union Foo {} // union Foo {}
// union Foo { // union Foo {