Skip to content

Commit 20bccb7

Browse files
committed
Parser: rm comma
1 parent ba5b5a4 commit 20bccb7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Nix/Parser.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ braces = on between symbol "{" "}"
184184
brackets :: Parser (NExprF f) -> Parser (NExprF f)
185185
brackets = on between symbol "[" "]"
186186

187-
comma :: Parser Text
188-
comma = symbol ","
189-
190187
-- colon = symbol ":"
191188
-- dot = symbol "."
192189

@@ -697,7 +694,7 @@ argExpr =
697694
let args = acc <> [pair]
698695

699696
-- Either return this, or attempt to get a comma and restart.
700-
option (args, mempty) $ comma *> go args
697+
option (args, mempty) $ symbol "," *> go args
701698

702699
nixLambda :: Parser NExprLoc
703700
nixLambda =

0 commit comments

Comments
 (0)