Fix multiple string interps

This commit is contained in:
Kampfkarren 2022-07-26 15:47:33 -07:00
parent 7ace43e29f
commit 08a0f3015e
2 changed files with 2 additions and 1 deletions

View file

@ -625,6 +625,7 @@ const Lexeme Lexer::nextInterpolatedString()
incrementInterpolatedStringDepth();
lexeme = Lexeme(Location(start, position()), Lexeme::InterpStringMid, &buffer[startOffset], offset - startOffset);
consume();
return lexeme;
default:

View file

@ -11,7 +11,7 @@ assertEq(`hello {"world"}`, "hello world")
assertEq(`2 + 2 = {2 + 2}`, "2 + 2 = 4")
-- assertEq(`{1} {2} {3} {4} {5} {6} {7}`, "1 2 3 4 5 6 7")
assertEq(`{1} {2} {3} {4} {5} {6} {7}`, "1 2 3 4 5 6 7")
-- local combo = {5, 2, 8, 9}
-- assert(`The lock combinations are: {table.concat(combo, ", ")}` == "The lock combinations are: 5, 2, 8, 9")