aboutsummaryrefslogtreecommitdiff
path: root/src/Fun/Grammar.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-03-04 01:10:12 +0100
committerMarvin Borner2022-03-04 01:10:12 +0100
commitdbfb7c4f285fda49c59648ef16c6d6bfdd4e59bd (patch)
tree9b44a3dcb6ab087569293489700177c7d5709f41 /src/Fun/Grammar.hs
parent6af1f804f0def7f48ae2d726951b13c895b85931 (diff)
Syntax
Diffstat (limited to 'src/Fun/Grammar.hs')
-rw-r--r--src/Fun/Grammar.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fun/Grammar.hs b/src/Fun/Grammar.hs
index 7f6625d..422a211 100644
--- a/src/Fun/Grammar.hs
+++ b/src/Fun/Grammar.hs
@@ -119,6 +119,7 @@ functionPatternElement :: Parser FunctionPatternElement
functionPatternElement =
(functionParameter >>> FunctionPatternParameter)
<|> (literal '_' >>> const FunctionPatternWildcard)
+ <|> (literal '_' <+-> literal '*' >>> const FunctionPatternSuperWildcard)
<|> (number >>> FunctionPatternNumber)
<|> (string >>> FunctionPatternString)
<?> "function pattern element"