Skip to content

Inconsistent formatting when running stylua multiple times #397

@flakolefluk

Description

@flakolefluk

given:

--[[comment]]
type Doo
--[[comment]]
<
--[[comment]]
T
--[[comment]]
>
--[[comment]]
= 
--[[comment]]
string
--[[comment]]

after stylua becomes:

--[[comment]]
type Doo--[[comment]]
<
	--[[comment]]
	T	--[[comment]]

>--[[comment]]
 = --[[comment]]
string
--[[comment]]

and running it a second time it becomes:

--[[comment]]
type Doo--[[comment]]<
	--[[comment]]
	T --[[comment]]
>--[[comment]] =  --[[comment]]string
--[[comment]]

running it more times stays the same.

Expected result:

  • results should be the same everytime stylua is executed

Tested on v0.12.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions