mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix multiple string interps
This commit is contained in:
parent
7ace43e29f
commit
08a0f3015e
2 changed files with 2 additions and 1 deletions
|
@ -625,6 +625,7 @@ const Lexeme Lexer::nextInterpolatedString()
|
|||
incrementInterpolatedStringDepth();
|
||||
|
||||
lexeme = Lexeme(Location(start, position()), Lexeme::InterpStringMid, &buffer[startOffset], offset - startOffset);
|
||||
consume();
|
||||
return lexeme;
|
||||
|
||||
default:
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue