fixed parse error
This commit is contained in:
parent
54377068aa
commit
ba178789e7
|
@ -168,13 +168,13 @@ top = many $ do
|
||||||
|
|
||||||
topTerm :: forall c . MegaConstraints c => Parser (Syntax c)
|
topTerm :: forall c . MegaConstraints c => Parser (Syntax c)
|
||||||
topTerm = do
|
topTerm = do
|
||||||
sc
|
L.lexeme sc $ do
|
||||||
co <- MegaContext . Just <$> getOffset
|
co <- MegaContext . Just <$> getOffset
|
||||||
s0 <- symbol scTop
|
s0 <- symbol scTop
|
||||||
ss <- many (syntax scTop)
|
ss <- many (syntax scTop)
|
||||||
|
|
||||||
void eol <|> eof
|
void eol <|> eof
|
||||||
pure $ List co (s0:ss)
|
pure $ List co (s0:ss)
|
||||||
|
|
||||||
topStmt :: forall c . MegaConstraints c => Parser (Syntax c)
|
topStmt :: forall c . MegaConstraints c => Parser (Syntax c)
|
||||||
topStmt = topTerm <|> syntax scTop
|
topStmt = topTerm <|> syntax scTop
|
||||||
|
|
Loading…
Reference in New Issue