diff options
Diffstat (limited to 'src/eval_env.cc')
-rw-r--r-- | src/eval_env.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eval_env.cc b/src/eval_env.cc index 0a53ae5..6b89b9c 100644 --- a/src/eval_env.cc +++ b/src/eval_env.cc @@ -56,8 +56,10 @@ bool EvalString::Parse(const string& input, string* err) { } else { for (end = start; end < input.size(); ++end) { char c = input[end]; - if (!(('a' <= c && c <= 'z') || ('0' <= c && c <= '9') || c == '_')) + if (!(('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || + ('0' <= c && c <= '9') || c == '_')) { break; + } } if (end == start) { *err = "expected variable after $"; |