about summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2019-01-28 16:22:29 +0100
committerLeah Neukirchen <chneukirchen@gmail.com>2020-05-15 18:41:13 +0200
commit32f0fcbc0d69e3dc1ee6d635ec64fcbdbfc0d132 (patch)
tree2a58b7fe1157762a8c5c7b397cfd6ad40336ffdb /man
parentd5afda072bc26583d85bb9868dc4611bc7038820 (diff)
downloadmblaze-32f0fcbc0d69e3dc1ee6d635ec64fcbdbfc0d132.tar.gz
mblaze-32f0fcbc0d69e3dc1ee6d635ec64fcbdbfc0d132.tar.xz
mblaze-32f0fcbc0d69e3dc1ee6d635ec64fcbdbfc0d132.zip
mpick: add let expressions
Diffstat (limited to 'man')
-rw-r--r--man/mpick.111
1 files changed, 11 insertions, 0 deletions
diff --git a/man/mpick.1 b/man/mpick.1
index 744fa24..53d5120 100644
--- a/man/mpick.1
+++ b/man/mpick.1
@@ -107,6 +107,8 @@ tests are given by the following EBNF:
              | prune             -- do not match further messages in thread
              | print             -- always true value
              | skip              -- always false value
+             | <let>
+             | <ident>
 
 <flagprop> ::= child | draft | flagged | info | new | parent | passed
              | replied  | seen | selected | trashed
@@ -149,6 +151,15 @@ tests are given by the following EBNF:
 
 <str>      ::= " ([^"] | "")+ "  -- use "" for a single " inside "
              | $[A-Za-z0-9_]+    -- environment variable
+
+-- let expressions evaluate the expression following the `in` keyword,
+-- the bindings are lazily evaluated.
+<let>      ::= { let <ident> = <scope> } in <scope>
+
+-- Inside the scope previously defined idents are replaced with expressions
+<scope>    ::= <expr>
+
+<ident>    ::= [A-Za-z_][A-Za-z0-9_]+
 .Ed
 .Sh EXIT STATUS
 .Ex -std