Parse foo-bar = expr
as an assignment.
This commit is contained in:
parent
8a2f5f0607
commit
f7980b4712
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ bool isVarName(const string & s)
|
||||||
if (!((i >= 'a' && i <= 'z') ||
|
if (!((i >= 'a' && i <= 'z') ||
|
||||||
(i >= 'A' && i <= 'Z') ||
|
(i >= 'A' && i <= 'Z') ||
|
||||||
(i >= '0' && i <= '9') ||
|
(i >= '0' && i <= '9') ||
|
||||||
i == '_' || i == '\''))
|
i == '_' || i == '-' || i == '\''))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue