diff options
author | Scott Olson <scott@solson.me> | 2016-02-14T07·16-0600 |
---|---|---|
committer | Scott Olson <scott@solson.me> | 2016-02-14T07·16-0600 |
commit | f7980b471273d695aa0b28f2f73e6ee443dfe9eb (patch) | |
tree | 669f63047b229debd3300fd45db7d7a514eaf7df /nix-repl.cc | |
parent | 8a2f5f0607540ffe56b56d52db544373e1efb980 (diff) |
Parse `foo-bar = expr` as an assignment.
Diffstat (limited to 'nix-repl.cc')
-rw-r--r-- | nix-repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-repl.cc b/nix-repl.cc index 474ad4fc9afd..25f84a3082ab 100644 --- a/nix-repl.cc +++ b/nix-repl.cc @@ -255,7 +255,7 @@ bool isVarName(const string & s) if (!((i >= 'a' && i <= 'z') || (i >= 'A' && i <= 'Z') || (i >= '0' && i <= '9') || - i == '_' || i == '\'')) + i == '_' || i == '-' || i == '\'')) return false; return true; } |