mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Fix global_tag parser
This commit is contained in:
parent
df4e1c250e
commit
b175e10678
1 changed files with 1 additions and 4 deletions
|
@ -1410,10 +1410,7 @@ fn private_tag<'a>() -> impl Parser<'a, &'a str> {
|
||||||
|
|
||||||
/// This is mainly for matching tags in closure params, e.g. \Foo -> ...
|
/// This is mainly for matching tags in closure params, e.g. \Foo -> ...
|
||||||
fn global_tag<'a>() -> impl Parser<'a, &'a str> {
|
fn global_tag<'a>() -> impl Parser<'a, &'a str> {
|
||||||
skip_first!(
|
|
||||||
char('@'),
|
|
||||||
global_tag_or_ident(|first_char| first_char.is_uppercase())
|
global_tag_or_ident(|first_char| first_char.is_uppercase())
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn string_literal<'a>() -> impl Parser<'a, Expr<'a>> {
|
pub fn string_literal<'a>() -> impl Parser<'a, Expr<'a>> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue