Merged
Conversation
chenrui333
reviewed
Nov 17, 2024
chenrui333
approved these changes
Nov 17, 2024
Contributor
|
🤖 An automated task has requested bottles to be published to this PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created with
brew bump-formula-pr.Details
release notes
stylua-win64.zip,stylua-linux.zipandstylua-macos.zipare no longer produced in GitHub releases, in favour of more specific names (e.g.,stylua-windows-x86_64,stylua-linux-x86_64andstylua-macos-x86_64).--stdin-filepathno longer respects ignore files by default, in line with passing files directly to the command line. Now,stylua --stdin-filepath foo.lua -will still format the stdin even iffoo.luawas in a.styluaignorefile. Use--respect-ignoresto preserve the original behaviour.Configstruct in stylua Rust libraryAdded
syntaxto help handle ambiguous syntax. By default, StyLua builds and runs with a parser to handle all Lua versions. However, the syntax of some Lua versions conflict with eachother: most notably, Lua 5.2+ goto label syntax::label::and Luau type assertion operator::. This option allows choosing what syntax to parse, to handle these conflicts. (#407)space_after_function_namesto specify whether to include a space between a function name and parentheses (#839)Changed
.stylua.tomlconfig resolution now supports looking up config files next to files being formatted, recursively goingupwards until reaching the current working directory, then stopping (unless
--search-parent-directorieswas specified).For example, for a file
./src/test.lua, executingstylua src/will look for./src/stylua.tomland then./stylua.toml.collapse_simple_statementis enabled, if the enclosing block is a return, we will check if the return expression is "simple" (currently, not containing a function definition) (#898)Fixed
:and the function name (#890)--verifypanicing due to overflow for very large Hex numbers (#875, #889)