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

reversability issue in inspect.lua from luvit #514

Closed
matthargett opened this issue Jul 28, 2022 · 1 comment · Fixed by #550
Closed

reversability issue in inspect.lua from luvit #514

matthargett opened this issue Jul 28, 2022 · 1 comment · Fixed by #550
Labels
bug Something isn't working

Comments

@matthargett
Copy link

https://github.com/kikito/inspect.lua/blob/master/inspect.lua

reduction:

local function escape(str)
	return (str:gsub("\\", "\\\\"):gsub("(%c)%f[0-9]", longControlCharEscapes):gsub("%c", shortControlCharEscapes))
end

with a 100 column width limit, running stylua 0.14.2 on the file twice has an effect. without the 100 column limit (defaulting to 120), it also has unstable formatting on the second format, but it doesn't reverse like it does at the 100 column limit.

@JohnnyMorganz JohnnyMorganz added the bug Something isn't working label Jul 29, 2022
@JohnnyMorganz
Copy link
Owner

A few other related issues: #546 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants