Skip to content

Commit

Permalink
Add first step of Lua 5.3 std lib (#189)
Browse files Browse the repository at this point in the history
* Add first step of Lua 5.3 std lib

* Address review comments

* Update CHANGELOG.md

Co-authored-by: boyned//Kampfkarren <[email protected]>
  • Loading branch information
Stanzilla and Kampfkarren authored Dec 21, 2020
1 parent 41330a3 commit 177a060
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Added inline lint filtering, read [the documentation](https://kampfkarren.github.io/selene/usage/filtering.html) for more information.
- More errors now set the exit code.
- Added support for error({any}) to the Roblox standard library.
- Added initial support for Lua 5.3 in the "lua53" standard library:
- New function `string.pack`
- New function `string.unpack`
- New function `string.packsize`
- New optional arg for `math.log`

### Changed
- `UDim.new` and `Region3int16.new` no longer require parameters.
Expand Down
18 changes: 18 additions & 0 deletions selene-lib/default_std/lua53.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[selene]
base = "lua52"

[[math.log.args]]
type = "number"

[[math.log.args]]
type = "number"
required = false

[[string.pack.args]]
type = "string"

[[string.packsize.args]]
type = "string"

[[string.unpack.args]]
type = "string"

0 comments on commit 177a060

Please sign in to comment.