Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix formatting #161

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading