mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Change nextInterpolatedString return value
This commit is contained in:
parent
54734826e7
commit
dbf5064449
2 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ public:
|
||||||
void setSkipComments(bool skip);
|
void setSkipComments(bool skip);
|
||||||
void setReadNames(bool read);
|
void setReadNames(bool read);
|
||||||
|
|
||||||
const Lexeme nextInterpolatedString();
|
const Lexeme& nextInterpolatedString();
|
||||||
|
|
||||||
const Location& previousLocation() const
|
const Location& previousLocation() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -587,7 +587,7 @@ Lexeme Lexer::readQuotedString()
|
||||||
return Lexeme(Location(start, position()), Lexeme::QuotedString, &buffer[startOffset], offset - startOffset - 1);
|
return Lexeme(Location(start, position()), Lexeme::QuotedString, &buffer[startOffset], offset - startOffset - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const Lexeme Lexer::nextInterpolatedString()
|
const Lexeme& Lexer::nextInterpolatedString()
|
||||||
{
|
{
|
||||||
Position start = position();
|
Position start = position();
|
||||||
unsigned int startOffset = offset;
|
unsigned int startOffset = offset;
|
||||||
|
|
Loading…
Add table
Reference in a new issue