Skip to content

Multiline comments, indent after closing "]]" is unstable #170

@notpeter

Description

@notpeter

Take this code block:

--[[
hello
world
]]--

Run Format and EmmyLuaCodeStyle Style changes it to:

--[[
poop
crap
]]
   --

Format a second time changes it again:

--[[
poop
crap
]]
--
  1. Ideally I'd love EmmyLuaCodeStyle to leave the first block unchanged.
  2. Even if not, formatted output should probably be stable such that format(format(code)) == format(code)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions