checkpoint 2

This commit is contained in:
Folkert 2021-02-26 20:41:42 +01:00
parent 5ec0103996
commit 98a3d42eff
5 changed files with 120 additions and 48 deletions

View file

@ -189,7 +189,13 @@ pub fn app_header<'a>() -> impl Parser<'a, AppHeader<'a>, SyntaxError<'a>> {
and!(
skip_first!(
ascii_string("app"),
and!(space1(1), loc!(string_literal::parse()))
and!(
space1(1),
loc!(crate::parser::specialize(
|e, r, c| SyntaxError::Expr(crate::parser::EExpr::Str(e, r, c)),
string_literal::parse()
))
)
),
and!(
optional(packages()),