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 :: Parser NExprLoc
|
||||||
nixAssert = annotateLocation1
|
nixAssert = annotateLocation1
|
||||||
( NAssert
|
( NAssert
|
||||||
<$> (reserved "assert" *> nixExpr)
|
<$> (reserved "assert" *> nixToplevelForm)
|
||||||
<*> (semi *> nixToplevelForm)
|
<*> (semi *> nixToplevelForm)
|
||||||
<?> "assert"
|
<?> "assert"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue