VariableExpression: hyphen after digit lexing fix

This commit is contained in:
atlimit8
2017-04-15 09:29:30 -05:00
parent afc1f22c63
commit f9974624c8
2 changed files with 23 additions and 1 deletions

View File

@@ -320,7 +320,7 @@ namespace OpenRA.Support
cc = CharClassOf(expression[i]);
if (cc != CharClass.Digit)
{
if (cc != CharClass.Whitespace && cc != CharClass.Operator)
if (cc != CharClass.Whitespace && cc != CharClass.Operator && cc != CharClass.Mixed)
throw new InvalidDataException("Number {0} and variable merged at index {1}".F(
int.Parse(expression.Substring(start, i - start)), start));