A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JohnnyMorganz/StyLua/issues/830 below:

Function definition for a very long variable name results into only closing bracket moved to the next line · Issue #830 · JohnnyMorganz/StyLua · GitHub

Example:

local a_very_long_variable_name_given_that_is_bigger_than_width_upper_limit_but_unfortunately_can_not_be_made_shorter = function()
	print("Hello")
end

Formatting with StyLua 0.19.1 and default config leads to this:

local a_very_long_variable_name_given_that_is_bigger_than_width_upper_limit_but_unfortunately_can_not_be_made_shorter = function(
)
	print("Hello")
end

Not sure if this is intended and couldn't find an issue.

I think this did not happen in 0.15.1.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4