Closed LiXizhi closed 7 years ago
every line in def will have the same indentation
Case1:
def("activate", p1){ NPL.this(function() local +{params(p1)} = msg; +{emit()} end); }
will be formatted into
def("activate", p1){ NPL.this(function() local +{params(p1)} = msg; +{emit()} end); }
Case2:
def("activate", p){ if true then print() else print() end }
will be formatted into
def("activate", p){ if true then print() else print() end }
Case1:
will be wrongly formatted to
Case2:
will be wrongly formatted to