Skip to content

Commit

Permalink
Update tokenize.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 17, 2024
1 parent 3c772a4 commit bf08b43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,10 @@ namespace {
Token::createMutualLinks(tok3->next(), after->previous());
}
}
if (!after) {
mReplaceFailed = true;
return;
}

bool useAfterVarRange = true;
if (Token::simpleMatch(mRangeAfterVar.first, "[")) {
Expand Down

0 comments on commit bf08b43

Please sign in to comment.