- Now uses new comment method
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-17 12:24:56 +02:00
parent e09f6ad59d
commit efd3f420b5
1 changed files with 4 additions and 2 deletions

View File

@ -154,6 +154,8 @@ public final class Parser
private bool getAssociatedComment(ref Comment comment)
{
// TODO: null check? on this.prevToken
// If the previous token was a comment
if
(
@ -488,9 +490,9 @@ public final class Parser
// TODO: Check if we should pop anything off of the comment
// stack here
Comment potComment;
if(hasCommentsOnStack())
if(getAssociatedComment(potComment))
{
potComment = popComment();
DEBUG(format("Found associated comment: %s", potComment));
}
scope(exit)