Skip to content

Conversation

@sumneko
Copy link
Contributor

@sumneko sumneko commented Dec 24, 2025

I have updated the Lua syntax file to add support for the latest Lua 5.5

Copilot AI review requested due to automatic review settings December 24, 2025 03:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Lua syntax grammar by synchronizing with the upstream lua.tmbundle repository (commit ec2f07535). The description claims to add support for "Lua 5.5", but this version does not exist - the latest stable Lua version is 5.4. The changes include improvements to parameter parsing, operator handling, and library function recognition, though some additions appear to be for non-standard Lua dialects.

  • Enhanced vararg parameter recognition with dedicated pattern matching
  • Added "global" keyword support (non-standard Lua)
  • Separated logical operators into a distinct scope
  • Updated library function list to include "table.create"
  • Improved type annotation patterns in EmmyDoc comments

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
extensions/lua/syntaxes/lua.tmLanguage.json Updates grammar patterns including function parameters, operators, library functions, and type annotations; adds support for varargs and non-standard keywords
extensions/lua/cgmanifest.json Updates commit hash reference to match the new upstream grammar version

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants