summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2021-03-21 15:12:54 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2021-03-21 15:14:31 +0900
commit21863470d965b8cc299b1f82417c70d5d26f8ab2 (patch)
tree727faf202cf818d796602b526e17fb9bfea0cb29 /doc
parent232433f22423fb6a3ff7a610140c711a964d3b3d (diff)
Pattern matching pin operator against expression [Feature #17411]
This commit is based on the patch by @nobu.
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/pattern_matching.rdoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc
index 9f6954f1cb..69756369fb 100644
--- a/doc/syntax/pattern_matching.rdoc
+++ b/doc/syntax/pattern_matching.rdoc
@@ -450,6 +450,7 @@ Approximate syntax is:
value_pattern: literal
| Constant
| ^variable
+ | ^(expression)
variable_pattern: variable