Skip to content

Luau 0.715 integer library - #176

Open
tapple wants to merge 9 commits into
secondlife:mainfrom
tapple:715-integer
Open

Luau 0.715 integer library#176
tapple wants to merge 9 commits into
secondlife:mainfrom
tapple:715-integer

Conversation

@tapple

@tapple tapple commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

As of Luau 0.729, integers are still experimental, and I don't plan to put them in the generated files. But I need them for EmbeddedBuiltinDefinitions.cpp #181 . Integers are removed again in the next PR in this series, #180 . You probably want to review this and #180 at the same time. That's why this PR is marked ready for review dispite SLua not even containing Luau 0.715 yet

@tapple tapple changed the title Luau 0.715 integer Luau 0.715 integer library Jul 11, 2026
@tapple
tapple force-pushed the 715-integer branch 2 times, most recently from 554c0d4 to 6f821d0 Compare July 13, 2026 15:00
@tapple
tapple marked this pull request as ready for review July 13, 2026 21:22
@tapple
tapple marked this pull request as draft July 14, 2026 14:33
@tapple
tapple marked this pull request as ready for review August 4, 2026 16:42
Comment thread templates/syntax/slua.tmLanguage.json Outdated
{
"name": "constant.numeric.decimal.luau",
"match": "(?:\\d[\\d_]*(?:\\.[\\d_]*)?|\\.\\d[\\d_]*)(?:[eE][\\+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?"
"match": "(?:\\d[\\d_]*(?:\\.[\\d_]*)?|\\.\\d[\\d_]*)(?:i|[eE][\\+\\-]?_*\\d[\\d_]*(?:\\.[\\d_]*)?)?"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this correct? Wouldn't this allow 1.1i?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a unit test upstream and let you know

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes submitted upstream: JohnnyMorganz/Luau.tmLanguage#31

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed: 0385148

@HaroldCindy HaroldCindy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Just one question about the regex for decimals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants