You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supports the parsing of Luau function attributes, such as `@native` or
`@checked`. Does not perform any validation on the name of attributes,
unlike Luau.
Unfortunately, due to the existing `Attribute` struct for Lua 5.4
`<const>` attributes, we have to name the struct `LuauAttribute`.
**[BREAKING CHANGE]**: Because attributes can be attached to anonymous
functions, we create a new `AnonymousFunction` struct to handle this.
This replaces the old `Box<(TokenReference, FunctionBody)>`.
Closes#336
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13
13
- In Unpacking e.g. `local a, b, c = t` is equivalent to `local a, b, c = t.a, t.b, t.c`
14
14
- Set Constructors e.g. `t = { .x, .y }` is equivalent to `t = { x = true, y = true }`
15
15
- C-Style Comments (single & multiline) e.g. `/* comment */`
16
-
- Compile Time Jenkins' Hashes e.g. ``` `Hello, World!` -> 1395890823```
16
+
- Compile Time Jenkins' Hashes e.g. ``` `Hello, World!` -> 1395890823```
17
+
- Luau: support parsing function attributes (rfc: https://github.com/luau-lang/rfcs/blob/master/docs/syntax-attributes-functions.md)
18
+
19
+
### Changed
20
+
-**[BREAKING CHANGE]** Introduced a new struct `AnonymousFunction` that is used in the `Expression::Function` variant. The old `Box<(TokenReference, FunctionBody)>` is now replaced with `Box<AnonymousFunction>`, and allows us to attach more data to an anonymous function (at the moment, mainly Luau attributes)
0 commit comments