diff --git a/src/Language/Go/Assignment.hs b/src/Language/Go/Assignment.hs index 04225ea7c..33e870336 100644 --- a/src/Language/Go/Assignment.hs +++ b/src/Language/Go/Assignment.hs @@ -423,7 +423,7 @@ shortVarDeclaration :: Assignment shortVarDeclaration = makeTerm <$> symbol ShortVarDeclaration <*> children (Statement.Assignment <$> pure [] <*> expression <*> expression) breakStatement :: Assignment -breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Break <$> labelName) +breakStatement = makeTerm <$> symbol BreakStatement <*> children (Statement.Break <$> (labelName <|> emptyTerm)) decStatement :: Assignment decStatement = makeTerm <$> symbol DecStatement <*> children (Statement.PostDecrement <$> expression)