Skip to content

Commit 8a3b97a

Browse files
adamcholc-cube
authored andcommitted
add ocaml builtin types to keywords
1 parent f9e48e4 commit 8a3b97a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/compilerlib/pb_codegen_backend.ml

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ let fix_ocaml_keyword_conflict s =
6969
| "new" | "nonrec" | "object" | "of" | "open" | "or" | "private" | "rec"
7070
| "sig" | "struct" | "then" | "to" | "true" | "try" | "type" | "unit" | "val"
7171
| "virtual" | "when" | "while" | "with" | "mod" | "land" | "lor" | "lxor"
72-
| "lsl" | "lsr" | "asr" ->
72+
| "lsl" | "lsr" | "asr" | "option" | "list" | "string" | "int" | "float"
73+
| "array" | "char" | "bytes" | "bool" | "nativeint" | "int32" | "int64" ->
7374
s ^ "_"
7475
| _ -> s
7576

0 commit comments

Comments
 (0)