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

Necessary parentheses are removed

Open macias0 opened this issue 4 years ago • 0 comments

Input:

function x:PosToAbsolute( x, y )
    return ( x - 1 ) * self.width, ( y - 1 ) * self.height
end

Output:

function x:PosToAbsolute( x, y )
    return x - 1 * self.width, y - 1 * self.height -- <<== no parentheses
end

macias0 avatar Jul 14 '21 12:07 macias0