1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

don't contextualize otherwise diffing can change

This commit is contained in:
joshvera 2017-09-25 15:43:48 -04:00
parent 1d8fe40267
commit 4eef25d9a7

View File

@ -641,7 +641,7 @@ assignment = makeTerm <$> symbol Program <*> children (Syntax.Program <$> many s
-- | Match a term optionally preceded by comment(s), or a sequence of comments if the term is not present.
term :: Assignment -> Assignment
term term = contextualize comment term <|> makeTerm1 <$> (Syntax.Context <$> some1 comment <*> emptyTerm)
term term = many comment *> term <|> makeTerm1 <$> (Syntax.Context <$> some1 comment <*> emptyTerm)
expression :: Assignment
expression = term (handleError everything)