diff options
Diffstat (limited to 'mcs/class/System/System.Text.RegularExpressions/parser.cs')
-rw-r--r-- | mcs/class/System/System.Text.RegularExpressions/parser.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/class/System/System.Text.RegularExpressions/parser.cs b/mcs/class/System/System.Text.RegularExpressions/parser.cs index ee115c17556..96c2025ca31 100644 --- a/mcs/class/System/System.Text.RegularExpressions/parser.cs +++ b/mcs/class/System/System.Text.RegularExpressions/parser.cs @@ -1102,6 +1102,9 @@ namespace System.Text.RegularExpressions.Syntax { if (!dict.Contains (name)) { if (expr is CaptureAssertion && !Char.IsDigit (name [0])) continue; + BackslashNumber bn = expr as BackslashNumber; + if (bn != null && bn.ResolveReference (name, dict)) + continue; throw NewParseException ("Reference to undefined group " + (Char.IsDigit (name[0]) ? "number " : "name ") + name); |