Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylua: Enable more Lua version formatting #25450

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

halostatue
Copy link
Contributor

@halostatue halostatue commented Aug 25, 2024

Description

By default, stylua is built with support for Lua 5.1 only, but can be built to support Lua 5.1 through Lua 5.4 and Luau. This only requires adding luau and lua54 to the default features, editorconfig and wasm-bindgen. lua54 implies lua52 and lua53.

I was able to format a Lua 5.4 file that was not previously formattable with the existing feature set.

Type(s)
  • enhancement
Tested on

macOS 14.6.1 23G93 arm64 Xcode 15.4 15F31d

Verification

Have you

  • followed our Commit Message Guidelines?
  • squashed and minimized your commits?
  • checked that there aren't other open pull requests for the same change?
  • checked your Portfile with port lint --nitpick?
  • tried existing tests with sudo port test?
  • tried a full install with sudo port -vst install?
  • tested basic functionality of all binary files?

By default, stylua is built with support for Lua 5.1 only, but can be
built to support Lua 5.1 through Lua 5.4 and Luau. This only requires
adding `luau` and `lua54` to the default features, `editorconfig` and
`wasm-bindgen`. `lua54` implies `lua52` and `lua53`.

I was able to format a Lua 5.4 file that was not previously formattable
with the existing feature set.
@macportsbot
Copy link

Notifying maintainers:
@judaew for port stylua.

Copy link
Member

@judaew judaew left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the contribution 🌟

@judaew judaew merged commit 9afbba8 into macports:master Aug 25, 2024
3 checks passed
@halostatue halostatue deleted the stylua-additional-features branch August 25, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer: open Affects an openmaintainer port type: enhancement
Development

Successfully merging this pull request may close these issues.

3 participants