Skip to content

Commit

Permalink
use maybeLayoutUntilIgnored in a few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
lue-bird committed Aug 30, 2024
1 parent 84533d3 commit ee75e57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Elm/Parser/Expression.elm
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ letDestructuringDeclaration =
}
)
Patterns.patternNotDirectlyComposing
(Layout.maybeLayoutUntilIgnored ParserFast.symbol "=")
Layout.maybeLayout
(ParserFast.symbolFollowedBy "=" Layout.maybeLayout)
expression


Expand Down
12 changes: 8 additions & 4 deletions src/Elm/Parser/Modules.elm
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ effectModuleDefinition =
)
}
)
(ParserFast.keywordFollowedBy "effect" Layout.maybeLayout)
(ParserFast.keywordFollowedBy "module" Layout.maybeLayout)
(ParserFast.keywordFollowedBy "effect"
(Layout.maybeLayoutUntilIgnored ParserFast.keyword "module")
)
Layout.maybeLayout
moduleName
Layout.maybeLayout
effectWhereClauses
Expand Down Expand Up @@ -151,8 +153,10 @@ portModuleDefinition =
(PortModule { moduleName = moduleName, exposingList = exposingList.syntax })
}
)
(ParserFast.keywordFollowedBy "port" Layout.maybeLayout)
(ParserFast.keywordFollowedBy "module" Layout.maybeLayout)
(ParserFast.keywordFollowedBy "port"
(Layout.maybeLayoutUntilIgnored ParserFast.keyword "module")
)
Layout.maybeLayout
moduleName
Layout.maybeLayout
exposeDefinition

0 comments on commit ee75e57

Please sign in to comment.