From d07ceb30e1766a208c9b42f01260331080664b5a Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Mon, 10 Apr 2023 23:37:01 +0900 Subject: [PATCH] fix: sync_to_translation_status.er --- crates/erg_compiler/error/tycheck.rs | 1 + doc/scripts/mylib.d.er | 2 -- doc/scripts/sync_to_translation_status.er | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/erg_compiler/error/tycheck.rs b/crates/erg_compiler/error/tycheck.rs index ea6f29f9..8480738e 100644 --- a/crates/erg_compiler/error/tycheck.rs +++ b/crates/erg_compiler/error/tycheck.rs @@ -178,6 +178,7 @@ impl TyCheckError { found: &Type, hint: Option, ) -> Self { + let name = name.with_color(Color::Yellow); let mut expct = StyledStrings::default(); switch_lang!( "japanese" => expct.push_str("予期した型: "), diff --git a/doc/scripts/mylib.d.er b/doc/scripts/mylib.d.er index e1c38b19..f78487bb 100644 --- a/doc/scripts/mylib.d.er +++ b/doc/scripts/mylib.d.er @@ -1,5 +1,3 @@ -re = pyimport "re" - .get_file_dirname!: () => Str .path_join: (__a: Str, path: Str) => Str diff --git a/doc/scripts/sync_to_translation_status.er b/doc/scripts/sync_to_translation_status.er index a91921ec..314bfa14 100644 --- a/doc/scripts/sync_to_translation_status.er +++ b/doc/scripts/sync_to_translation_status.er @@ -42,7 +42,7 @@ get_doc_en_file_paths! relative_dir_path, relative_file_paths_result := [] = for! relative_file_paths, path => result.push! path for! relative_dir_paths, path => - result.push! get_doc_en_file_paths! path, result + result.extend! get_doc_en_file_paths! path, result result doc_en_file_paths = get_doc_en_file_paths! "EN"