mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Finalize union grammar
This commit is contained in:
parent
8ddbf06e39
commit
1ae4721c9c
23 changed files with 51 additions and 51 deletions
|
@ -11,7 +11,7 @@ pub(super) fn struct_def(p: &mut Parser, m: Marker) {
|
|||
pub(super) fn union_def(p: &mut Parser, m: Marker) {
|
||||
assert!(p.at_contextual_kw("union"));
|
||||
p.bump_remap(T![union]);
|
||||
struct_or_union(p, m, T![union], UNION_DEF);
|
||||
struct_or_union(p, m, T![union], UNION);
|
||||
}
|
||||
|
||||
fn struct_or_union(p: &mut Parser, m: Marker, kw: SyntaxKind, def: SyntaxKind) {
|
||||
|
|
|
@ -124,7 +124,7 @@ pub enum SyntaxKind {
|
|||
R_DOLLAR,
|
||||
SOURCE_FILE,
|
||||
STRUCT_DEF,
|
||||
UNION_DEF,
|
||||
UNION,
|
||||
ENUM_DEF,
|
||||
FN,
|
||||
RET_TYPE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue