Skip to content

Commit 0d4aee2

Browse files
committed
Changed root namespace for grun tool.
Added back missing try/catch that was removed while debugging.
1 parent 34d1756 commit 0d4aee2

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

Grun/Grun.csproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProjectGuid>{B614368A-F4C9-409F-8896-CB1DA204AD6D}</ProjectGuid>
88
<OutputType>Exe</OutputType>
9-
<RootNamespace>Org.Edgerunner.ANTLR4.Tools.Testing.GrunDotNet</RootNamespace>
9+
<RootNamespace>Org.Edgerunner.ANTLR4.Tools.Testing.Grun</RootNamespace>
1010
<AssemblyName>Grun</AssemblyName>
1111
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1212
<FileAlignment>512</FileAlignment>
@@ -64,7 +64,8 @@
6464
<Reference Include="System.Xml" />
6565
</ItemGroup>
6666
<ItemGroup>
67-
<Compile Include="HighlightingTokenCache.cs" />
67+
<Compile Include="SyntaxHighlighting\ConsoleWrapperColor.cs" />
68+
<Compile Include="SyntaxHighlighting\HighlightingTokenCache.cs" />
6869
<Compile Include="Options.cs">
6970
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7071
</Compile>
@@ -75,6 +76,7 @@
7576
<DesignTime>True</DesignTime>
7677
<DependentUpon>Resources.resx</DependentUpon>
7778
</Compile>
79+
<Compile Include="SyntaxHighlighting\ConsoleWrapperText.cs" />
7880
</ItemGroup>
7981
<ItemGroup>
8082
<None Include="..\Grun.Net.config">
@@ -109,5 +111,6 @@
109111
<SubType>Designer</SubType>
110112
</EmbeddedResource>
111113
</ItemGroup>
114+
<ItemGroup />
112115
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
113116
</Project>

Grun/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
using CommandLine;
3838

39-
namespace Org.Edgerunner.ANTLR4.Tools.Testing.GrunDotNet
39+
namespace Org.Edgerunner.ANTLR4.Tools.Testing.Grun
4040
{
4141
/// <summary>
4242
/// Class that represents command line options.

Grun/Program.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@
6060
using Org.Edgerunner.ANTLR4.Tools.Testing.Configuration;
6161
using Org.Edgerunner.ANTLR4.Tools.Testing.Extensions;
6262
using Org.Edgerunner.ANTLR4.Tools.Testing.Grammar;
63-
using Org.Edgerunner.ANTLR4.Tools.Testing.GrunDotNet.Properties;
63+
using Org.Edgerunner.ANTLR4.Tools.Testing.Grun.Properties;
6464
using Org.Edgerunner.ANTLR4.Tools.Testing.GrunWin;
6565
using Org.Edgerunner.ANTLR4.Tools.Testing.GrunWin.Editor.SyntaxHighlighting;
6666

6767
using Console = Colorful.Console;
6868
using Parser = CommandLine.Parser;
6969

7070
// ReSharper disable RedundantNameQualifier
71-
namespace Org.Edgerunner.ANTLR4.Tools.Testing.GrunDotNet
71+
namespace Org.Edgerunner.ANTLR4.Tools.Testing.Grun
7272
{
7373
/// <summary>
7474
/// Class that represents the entry point into the program.
@@ -87,8 +87,8 @@ internal class Program
8787
// ReSharper disable once MethodTooLong
8888
private static void Main(string[] args)
8989
{
90-
//try
91-
//{
90+
try
91+
{
9292
LoadApplicationSettings();
9393
Console.BackgroundColor = _Settings.EditorBackgroundColor;
9494
Console.ForegroundColor = _Settings.EditorTextColor;
@@ -268,17 +268,17 @@ private static void Main(string[] args)
268268
Console.WriteLine(Resources.PressAnyKeyMessage);
269269
Console.ReadKey();
270270
#endif
271-
// }
272-
// // ReSharper disable once CatchAllClause
273-
// catch (Exception ex)
274-
// {
275-
// Console.WriteLine(ex.Message);
276-
// Console.WriteLine(ex.StackTrace);
277-
//#if DEBUG
278-
// Console.WriteLine(Resources.PressAnyKeyMessage);
279-
// Console.ReadKey();
280-
//#endif
281-
// }
271+
}
272+
// ReSharper disable once CatchAllClause
273+
catch (Exception ex)
274+
{
275+
Console.WriteLine(ex.Message);
276+
Console.WriteLine(ex.StackTrace);
277+
#if DEBUG
278+
Console.WriteLine(Resources.PressAnyKeyMessage);
279+
Console.ReadKey();
280+
#endif
281+
}
282282
}
283283

284284
private static void HighlightSyntaxInConsole(int lineOffset, Analyzer analyzer, ISyntaxHighlightingGuide guide)

Grun/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.20081.14")]
36-
[assembly: AssemblyFileVersion("1.0.20081.14")]
35+
[assembly: AssemblyVersion("1.0.20081.15")]
36+
[assembly: AssemblyFileVersion("1.0.20081.15")]

Grun/Properties/Resources.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)