mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-19 15:02:15 +01:00
Strip all comments from the C# sources
Removes every // and /// comment from the 28 .cs files, -1331 lines.
Done with a lexer rather than a regex: the sources carry plenty of // inside
string literals (@"//\$decor\b", the //$o trainset directives, sb.Append("// "),
"https://wiki.eu07.pl/") and those must survive. It tracks regular, verbatim and
interpolated strings, interpolation holes and char literals. Every file was
checked by comparing the sequence of string-literal characters before and after
the strip; all 28 match. BOMs preserved, blank-line runs collapsed to one.
Claude-Session: https://claude.ai/code/session_01HamVNWE9mwmz1vs2iEpNQq
This commit is contained in:
@@ -2,14 +2,9 @@ using System.Reflection;
|
||||
|
||||
namespace StarterNG;
|
||||
|
||||
/// <summary>Static, display-ready information about the running launcher build.</summary>
|
||||
public static class AppInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// The launcher's assembly version (e.g. "1.2.3.4"), with a " (DEBUG)" suffix
|
||||
/// appended for Debug builds so debug and release binaries are easy to tell
|
||||
/// apart. Computed once; safe to bind with {x:Static}.
|
||||
/// </summary>
|
||||
|
||||
public static string Version { get; } = BuildVersion();
|
||||
|
||||
private static string BuildVersion()
|
||||
|
||||
Reference in New Issue
Block a user