File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,12 @@ let buckle_script_flags : (string * Bsc_args.spec * string) array =
392392 print the transformed ReScript code to stdout" );
393393 (" -format" , string_call format_file, " *internal* Format as Res syntax" );
394394 (" -only-parse" , set Clflags. only_parse, " *internal* stop after parsing" );
395+ ( " -editor-mode" ,
396+ unit_call (fun () ->
397+ Clflags. editor_mode := true ;
398+ Clflags. ignore_parse_errors := true ;
399+ Js_config. cmi_only := true ),
400+ " *internal* Enable editor mode." );
395401 ( " -ignore-parse-errors" ,
396402 set Clflags. ignore_parse_errors,
397403 " *internal* continue after parse errors" );
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ and dump_lambda = ref false (* -dlambda *)
4040
4141and only_parse = ref false (* -only-parse *)
4242
43+ and editor_mode = ref false (* -editor-mode *)
44+
4345and ignore_parse_errors = ref false (* -ignore-parse-errors *)
4446
4547let dont_write_files = ref false (* set to true under ocamldoc *)
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ val dont_write_files : bool ref
2525val keep_locs : bool ref
2626val only_parse : bool ref
2727val ignore_parse_errors : bool ref
28+ val editor_mode : bool ref
2829
2930val parse_color_setting : string -> Misc.Color .setting option
3031val color : Misc.Color .setting option ref
You can’t perform that action at this time.
0 commit comments