Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-08-21 00:36:26 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-08-21 00:36:26 +0400
commit22df684e18a7402381425b0a576ce34e3d928767 (patch)
tree88edd5d336ef1ce77f6bc7d148d049559c050ca2 /mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
parentc20e078e4e956d48dd75edd1ada5ea648c227f4c (diff)
2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* CSharpCodeCompiler.cs: made the colon optional so that both mcs and gmcs work. svn path=/trunk/mcs/; revision=48608
Diffstat (limited to 'mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs')
-rw-r--r--mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
index 9756bacab9d..2e788893d57 100644
--- a/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
+++ b/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
@@ -261,7 +261,7 @@ namespace Mono.CSharp
return null;
CompilerError error=new CompilerError();
- Regex reg = new Regex (@"^(\s*(?<file>.*)\((?<line>\d*)(,(?<column>\d*))?\):\s+)*(?<level>\w+)\s*(?<number>.*):\s(?<message>.*)",
+ Regex reg = new Regex (@"^(\s*(?<file>.*)\((?<line>\d*)(,(?<column>\d*))?\)(:)?\s+)*(?<level>\w+)\s*(?<number>.*):\s(?<message>.*)",
RegexOptions.Compiled | RegexOptions.ExplicitCapture);
Match match=reg.Match(error_string);
if (!match.Success) return null;