Fix { range to be within the interpolated string

This commit is contained in:
boyned//Kampfkarren 2022-10-27 16:49:56 -07:00 committed by GitHub
parent ad7d006fb2
commit 855f43236f
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -641,8 +641,8 @@ Lexeme Lexer::readInterpolatedStringSection(Position start, Lexeme::Type formatT
return brokenDoubleBrace;
}
Lexeme lexemeOutput(Location(start, position()), Lexeme::InterpStringBegin, &buffer[startOffset], offset - startOffset);
consume();
Lexeme lexemeOutput(Location(start, position()), Lexeme::InterpStringBegin, &buffer[startOffset], offset - startOffset);
return lexemeOutput;
}