StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

`foo[([==[bar]==])] = true` is incorrectly formatted

Open phanen opened this issue 8 months ago • 0 comments

local foo = {
  [([==[bar]==])] = true,
  [([=[bar]=])] = true,
  [([[bar]])] = true,
}
foo[([==[bar]==])] = true
foo[([=[bar]=])] = true
foo[([[bar]])] = true

will be converted to error format

local foo = {
  [[==[bar]==]] = true,
  [[=[bar]=]] = true,
  [[[bar]]] = true,
}
foo[[==[bar]==]] = true
foo[[=[bar]=]] = true
foo[[[bar]]] = true

phanen avatar May 06 '25 09:05 phanen