Fix `assert` parser to accept top-level nix forms
This commit is contained in:
parent
dc31c5e64f
commit
50baea5e1e
|
@ -268,7 +268,7 @@ nixIf = annotateLocation1
|
|||
nixAssert :: Parser NExprLoc
|
||||
nixAssert = annotateLocation1
|
||||
( NAssert
|
||||
<$> (reserved "assert" *> nixExpr)
|
||||
<$> (reserved "assert" *> nixToplevelForm)
|
||||
<*> (semi *> nixToplevelForm)
|
||||
<?> "assert"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue