mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Reuse tag_pattern()
This commit is contained in:
parent
b175e10678
commit
2eb6fb2046
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue