Skip to content

Bug: could not format with verify or bad without #747

@d-enk

Description

@d-enk

stylua@v0.18.1

from

local obj = {}

obj.func = function()
  return obj
end

obj. --
func(). --
func(). --
func()

after stylua --verify -

error: could not format file test.lua: INTERNAL ERROR: Output AST generated a syntax error. Please report this at https://github.com/johnnymorganz/stylua/issues
error occurred while creating ast: unexpected token ``. (starting from line 8, character 1 and ending on line 8, character 1)
additional information: expected nam

after stylua -

local obj = {}

obj.func = function()
	return obj
end

obj. --func(). --func(). --func()

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