Selaa lähdekoodia

[js] do not output double semicolons (closes #4077)

Simon Krajewski 10 vuotta sitten
vanhempi
commit
ef9254491b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      genjs.ml

+ 1 - 1
genjs.ml

@@ -256,7 +256,7 @@ let write_mappings ctx =
 
 
 let newline ctx =
 let newline ctx =
 	match Rbuffer.nth ctx.buf (Rbuffer.length ctx.buf - 1) with
 	match Rbuffer.nth ctx.buf (Rbuffer.length ctx.buf - 1) with
-	| '}' | '{' | ':' when not ctx.separator -> print ctx "\n%s" ctx.tabs
+	| '}' | '{' | ':' | ';' when not ctx.separator -> print ctx "\n%s" ctx.tabs
 	| _ -> print ctx ";\n%s" ctx.tabs
 	| _ -> print ctx ";\n%s" ctx.tabs
 
 
 let newprop ctx =
 let newprop ctx =