Skip to content

Commit

Permalink
add ocaml builtin types to keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchol authored and c-cube committed Sep 17, 2024
1 parent f9e48e4 commit 8a3b97a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compilerlib/pb_codegen_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ let fix_ocaml_keyword_conflict s =
| "new" | "nonrec" | "object" | "of" | "open" | "or" | "private" | "rec"
| "sig" | "struct" | "then" | "to" | "true" | "try" | "type" | "unit" | "val"
| "virtual" | "when" | "while" | "with" | "mod" | "land" | "lor" | "lxor"
| "lsl" | "lsr" | "asr" ->
| "lsl" | "lsr" | "asr" | "option" | "list" | "string" | "int" | "float"
| "array" | "char" | "bytes" | "bool" | "nativeint" | "int32" | "int64" ->
s ^ "_"
| _ -> s

Expand Down

0 comments on commit 8a3b97a

Please sign in to comment.