Explorar o código

Move , in field seperator to previous line. fixes a jshint warning.

{
    x : ..
    ,y : ..
    ,z : ..
}

to

{
    x : ..,
    y : ..,
    z : ..
}
Luca Deltodesco %!s(int64=12) %!d(string=hai) anos
pai
achega
383089e6b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -233,7 +233,7 @@ let newline ctx =
 let newprop ctx =
 	match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with
 	| '{' -> print ctx "\n%s" ctx.tabs
-	| _ -> print ctx "\n%s," ctx.tabs
+	| _ -> print ctx ",\n%s" ctx.tabs
 
 let semicolon ctx =
 	match Buffer.nth ctx.buf (Buffer.length ctx.buf - 1) with