LuaFormat icon indicating copy to clipboard operation
LuaFormat copied to clipboard

Such block is not changed by format

Open CudaText-addons opened this issue 5 years ago • 2 comments

 n = 2 + 2.22 + 22.22e-2 + 0.22E1 
 n = 0xF0

         function Set.mt.__lt (a,b)
    return a <= b and not (b <= a)
end
  • leading spaces before "n="
  • bad indent for function

CudaText-addons avatar Jul 14 '19 11:07 CudaText-addons

n = 2 + 2.22 + 22.22e-2 + 0.22E1
n = 0xF0

function Set.mt.__lt (a, b)
    return a <= b and not (b <= a)
end

I can format them correctly:) This is whole code ?

floydawong avatar Jul 27 '19 06:07 floydawong

yes, whole code.

Alexey-T avatar Jul 27 '19 08:07 Alexey-T