summaryrefslogtreecommitdiff
path: root/src/Parser.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 5ad1b1a..ed03f3f 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -62,6 +62,7 @@ parseTestDefinition = label "test definition" $ toplevel ToplevelTest $ do
void $ L.indentGuard scn EQ ref
off <- stateOffset <$> getParserState
name <- try $ identifier <* osymbol ":"
+ <* ((eol >> mzero) <|> return ()) -- continue only if not on EOL
case name of
"tag" -> do
Just <$> typedExpr FunctionTerm <* eol <* scn