A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JohnnyMorganz/StyLua/issues/890 below:

Formation with comment between colon and method

before:

build(): -- comment
init():start()

after:

build()(): -- commentinit():start()

--verify

error: could not format file ./stylua.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 method

With . instead : - OK

build(). -- comment
init():start()
build()
	-- comment
	.init()
	:start()

Looks like related #873


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4