Skip to content

Commit

Permalink
fix formatting (#161)
Browse files Browse the repository at this point in the history
Thanks!
  • Loading branch information
hhugo authored Nov 1, 2024
1 parent 0979a35 commit c8156d1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/generator/gen_unicode.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ let parse_line l =
let l =
match String.index_opt l '#' with None -> l | Some i -> String.sub l 0 i
in
String.split_on_char ';' l
|> List.map String.trim
String.split_on_char ';' l |> List.map String.trim

let parse_code s =
try int_of_string (Printf.sprintf "0x%s" s)
Expand Down Expand Up @@ -92,11 +91,10 @@ let files =
let interval = parse_interval interval in
let prop = parse_prop prop in
Hashtbl.add labels prop interval
| [_interval; ("InCB"); ("Extend"|"Consonant"|"Linker")] ->
(* TODO: support non-binary properties? *)
()
| _ ->
assert false);
| [_interval; "InCB"; ("Extend" | "Consonant" | "Linker")] ->
(* TODO: support non-binary properties? *)
()
| _ -> assert false );
( "DerivedGeneralCategory.txt",
fun s ->
match parse_line s with
Expand Down

0 comments on commit c8156d1

Please sign in to comment.