mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Indented seq parsing for imports
This commit is contained in:
parent
2163b28390
commit
5c387857ff
5 changed files with 77 additions and 2 deletions
|
@ -2723,9 +2723,9 @@ fn try_kw<'a>() -> impl Parser<'a, Expr<'a>, EExpr<'a>> {
|
|||
|
||||
fn import<'a>() -> impl Parser<'a, ValueDef<'a>, EImport<'a>> {
|
||||
skip_second(
|
||||
skip_first(
|
||||
indented_seq_skip_first(
|
||||
parser::keyword(keyword::IMPORT, EImport::Import),
|
||||
increment_min_indent(one_of!(import_body(), import_ingested_file_body())),
|
||||
one_of!(import_body(), import_ingested_file_body()),
|
||||
),
|
||||
require_newline_or_eof(EImport::EndNewline),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue