about summary refs log tree commit diff
path: root/lr.1
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-10 19:02:45 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-10 19:02:45 +0100
commit95d82b1fd953a01bc8dadd0c277b79de17b64797 (patch)
treeb05216467166250fb017b9fc85ffc67f5d3214df /lr.1
parentcd7fa86f76bbcdde6bc96a238ad2db7f007fc586 (diff)
downloadlr-95d82b1fd953a01bc8dadd0c277b79de17b64797.tar.gz
lr-95d82b1fd953a01bc8dadd0c277b79de17b64797.tar.xz
lr-95d82b1fd953a01bc8dadd0c277b79de17b64797.zip
allow environment variables in place of string literals
avoids quoting... numeric values are safe to expand inline already.
Diffstat (limited to 'lr.1')
-rw-r--r--lr.11
1 files changed, 1 insertions, 0 deletions
diff --git a/lr.1 b/lr.1
index d422344..3488a28 100644
--- a/lr.1
+++ b/lr.1
@@ -255,6 +255,7 @@ tests are given by the following EBNF:
              | =~~               -- case insensitive POSIX Extended Regular Expressions
 
 <str>      ::= " ([^"] | "")+ "  -- use "" for a single " inside "
+             | $[A-Za-z0-9_]+    -- environment variable
 
 <typetest> ::= type ( == | = | != ) ( b | c | d | p | f | l )