Skip to content

Commit

Permalink
Debugger: WS - Fixed code highlighting issue caused by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SourMesen committed Nov 13, 2024
1 parent aa32d7e commit 54b8973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Debugger/Disassembly/CodeHighlighting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Mesen.Debugger.Disassembly
{
class CodeHighlighting
{
private static Regex _labelDef = new Regex("^(.+)\\s*[:=]", RegexOptions.IgnoreCase | RegexOptions.Compiled);
private static Regex _labelDef = new Regex("^([^\\s]+)\\s*[:=]", RegexOptions.IgnoreCase | RegexOptions.Compiled);

private static Regex _space = new Regex("^[ \t]+", RegexOptions.IgnoreCase | RegexOptions.Compiled);
private static Regex _comment = new Regex("^;.*", RegexOptions.IgnoreCase | RegexOptions.Compiled);
Expand Down

0 comments on commit 54b8973

Please sign in to comment.