Reuse tag_pattern()

This commit is contained in:
Richard Feldman 2020-01-05 14:19:42 -05:00
parent b175e10678
commit 2eb6fb2046

View file

@ -760,10 +760,7 @@ fn parse_closure_param<'a>(
char(')')
),
// The least common, but still allowed, e.g. \Foo -> ...
loc!(one_of!(
map!(private_tag(), Pattern::PrivateTag),
map!(global_tag(), Pattern::GlobalTag)
))
loc!(tag_pattern())
)
.parse(arena, state)
}