Skip to content

Commit 3cdda1e

Browse files
committed
Fix lexer not consuming single newlines in trivia
1 parent a375f50 commit 3cdda1e

File tree

1 file changed

+1
-0
lines changed
  • src/Discord.Net.ComponentDesigner.Parser/Lexer

1 file changed

+1
-0
lines changed

src/Discord.Net.ComponentDesigner.Parser/Lexer/CXLexer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ private void GetTrivia(bool isTrailing, ref int trivia)
459459
if (isTrailing)
460460
{
461461
trivia++;
462+
Reader.Advance();
462463
break;
463464
}
464465

0 commit comments

Comments
 (0)