plugin-lua icon indicating copy to clipboard operation
plugin-lua copied to clipboard

Binary expressions should break better

Open SpiralP opened this issue 7 years ago • 0 comments

current output

do
	ent = function(sock)
		local contents =
			"ENT = {}; local ENT=ENT; " .. sock:receive(
				"*a"
			) .. "; scripted_ents.Register(ENT, '" .. who:sub(0, -5) .. "')"
	end
end

expected output

do
	ent = function(sock)
		local contents =
			"ENT = {}; local ENT=ENT; "
				.. sock:receive("*a")
				.. "; scripted_ents.Register(ENT, '"
				.. who:sub(0, -5)
				.. "')"
	end
end

SpiralP avatar Jul 31 '18 06:07 SpiralP