Skip to content

Commit 2497bb7

Browse files
committed
v0.15.5+luau686
1 parent 40eb333 commit 2497bb7

File tree

19 files changed

+387
-619
lines changed

19 files changed

+387
-619
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "luau0-src"
3-
version = "0.15.4+luau682"
3+
version = "0.15.5+luau686"
44
authors = ["Aleksandr Orlenko <[email protected]>"]
55
edition = "2021"
66
repository = "https://github.com/mlua-rs/luau-src-rs"

luau/Ast/include/Luau/Lexer.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ class Lexer
192192
return offset;
193193
}
194194

195+
enum class BraceType
196+
{
197+
InterpolatedString,
198+
Normal
199+
};
200+
201+
std::optional<Lexer::BraceType> peekBraceStackTop();
202+
195203
private:
196204
char peekch() const;
197205
char peekch(unsigned int lookahead) const;
@@ -243,12 +251,6 @@ class Lexer
243251
bool skipComments;
244252
bool readNames;
245253

246-
enum class BraceType
247-
{
248-
InterpolatedString,
249-
Normal
250-
};
251-
252254
std::vector<BraceType> braceStack;
253255
};
254256

luau/Ast/include/Luau/Parser.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class Parser
130130
// function funcname funcbody
131131
LUAU_FORCEINLINE AstStat* parseFunctionStat(const AstArray<AstAttr*>& attributes = {nullptr, 0});
132132

133-
std::pair<bool, AstAttr::Type> validateAttribute_DEPRECATED(const char* attributeName, const TempVector<AstAttr*>& attributes);
134133
std::optional<AstAttr::Type> validateAttribute(const char* attributeName, const TempVector<AstAttr*>& attributes);
135134

136135
// attribute ::= '@' NAME

luau/Ast/src/Lexer.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,14 @@ Lexeme Lexer::readNext()
10091009
}
10101010
}
10111011

1012+
std::optional<Lexer::BraceType> Lexer::peekBraceStackTop()
1013+
{
1014+
if (braceStack.empty())
1015+
return std::nullopt;
1016+
else
1017+
return {braceStack.back()};
1018+
}
1019+
10121020
LUAU_NOINLINE Lexeme Lexer::readUtf8Error()
10131021
{
10141022
Position start = position();

0 commit comments

Comments
 (0)