提交 d4d840ac 编写于 作者: C Cyrus Najmabadi

Use same pattern in helper methods.

上级 cac3d643
......@@ -280,11 +280,6 @@ private static bool IsEscapeCategoryChar(VirtualChar ch)
return null;
}
if (!IsDecimalDigit(this.CurrentChar))
{
return null;
}
const int MaxValueDiv10 = int.MaxValue / 10;
const int MaxValueMod10 = int.MaxValue % 10;
......@@ -308,6 +303,11 @@ private static bool IsEscapeCategoryChar(VirtualChar ch)
}
}
if (Position == start)
{
return null;
}
var token = CreateToken(RegexKind.NumberToken, ImmutableArray<RegexTrivia>.Empty, GetSubPatternToCurrentPos(start));
token = token.With(value: value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册