From f7980b471273d695aa0b28f2f73e6ee443dfe9eb Mon Sep 17 00:00:00 2001 From: Scott Olson Date: Sun, 14 Feb 2016 01:16:30 -0600 Subject: Parse `foo-bar = expr` as an assignment. --- nix-repl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nix-repl.cc') 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; } -- cgit 1.4.1