Parcourir la source

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

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

to

{
    x : ..,
    y : ..,
    z : ..
}
Luca Deltodesco il y a 12 ans
Parent
commit
383089e6b8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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