Просмотр исходного кода

[typer] fix import.hx not being read from stdin

Simon Krajewski 6 лет назад
Родитель
Сommit
ea3f4ee929
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/typing/typeloadModule.ml

+ 1 - 1
src/typing/typeloadModule.ml

@@ -899,7 +899,7 @@ let handle_import_hx ctx m decls p =
 			r
 		with Not_found ->
 			if Sys.file_exists path then begin
-				let _,r = match TypeloadParse.parse_file ctx.com path p with
+				let _,r = match !TypeloadParse.parse_hook ctx.com path p with
 					| ParseSuccess data -> data
 					| ParseDisplayFile(data,_) -> data
 					| ParseError(_,(msg,p),_) -> Parser.error msg p