Skip to content

Commit 2f781a1

Browse files
committed
Fix coloring of bareword token w/ nested token at start
Fixes #204.
1 parent 614fa9e commit 2f781a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PSReadLine/Render.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ private void ReallyRender()
218218
BackgroundColor = backgroundColor,
219219
ForegroundColor = foregroundColor
220220
});
221+
222+
if (i == tokens[0].Extent.StartOffset)
223+
{
224+
GetTokenColors(tokens[0], out foregroundColor, out backgroundColor);
225+
}
221226
}
222227
}
223228
}

0 commit comments

Comments
 (0)