Explorar el Código

Cleanup + minor bugfix

Taddeus Kroes hace 10 años
padre
commit
b8a0f5c939
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      shorthand.ml

+ 1 - 2
shorthand.ml

@@ -117,7 +117,6 @@ let rec unfold = function
       | [] -> []
       | [color] when Color_names.is_color color -> [make "color" color]
       | tl -> raise (Box_error (Expr (Concat tl), "invalid background shortcut"))
-      (*| _ -> failwith "invalid background shortcut"*)
     in
     let id_repeat = function
       | repeat :: (Uri _ as image) :: tl ->
@@ -279,7 +278,7 @@ let rec make_shorthands decls =
   let replace (base, important) group tl =
     match fold (List.rev group) base with
     | Some short_value -> (base, short_value, important) :: tl
-    | None -> group @ tl
+    | None -> List.rev_append group tl
   in
   let shorthands = KM.fold replace groups [] in