1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
This commit is contained in:
joshvera 2016-08-16 22:04:36 -04:00
parent b24d12d869
commit 3a4a19b9ab

View File

@ -56,7 +56,7 @@ termConstructor source sourceSpan info = fmap cofree . construct
_ -> errorWith children
construct children | isOperator (category info) = withDefaultInfo $ S.Operator children
construct children | CommaOperator == category info = withDefaultInfo $ case children of
[child, rest] | S.Indexed f <- unwrap rest -> S.Indexed $ child : toList f
[child, rest] | S.Indexed cs <- unwrap rest -> S.Indexed $ child : toList cs
_ -> S.Indexed children
construct children | Function == category info = case children of
(body:[]) -> withDefaultInfo $ S.Function Nothing Nothing body