diff --git a/src/config.rs b/src/config.rs index cda82fb..064ae78 100644 --- a/src/config.rs +++ b/src/config.rs @@ -56,12 +56,20 @@ fn unicode_notation_to_char(unicode_notation: &str) -> Result = phf::phf_map! { "comment" => CodeType::Comment, + "interpreted_string_literal" => CodeType::StringLiteral, "raw_string_literal" => CodeType::StringLiteral, }; @@ -83,17 +92,21 @@ static GO_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { static JAVASCRIPT_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { "comment" => CodeType::Comment, "block_comment" => CodeType::Comment, + "string_fragment" => CodeType::StringLiteral, }; static PYTHON_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { - "string_content" => CodeType::StringLiteral, "comment" => CodeType::Comment, + + "string_content" => CodeType::StringLiteral, }; static RUST_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { "doc_comment" => CodeType::Comment, "line_comment" => CodeType::Comment, + "block_comment" => CodeType::Comment, + "string_content" => CodeType::StringLiteral, "char_literal" => CodeType::StringLiteral, }; @@ -101,6 +114,7 @@ static RUST_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { static SWIFT_CODE_TYPES: phf::Map<&'static str, CodeType> = phf::phf_map! { "comment" => CodeType::Comment, "multiline_comment" => CodeType::Comment, + "line_str_text" => CodeType::StringLiteral, "multi_line_str_text" => CodeType::StringLiteral, };