From a86bbd67954f7bbc38bb09138edb335d82666526 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 6 Aug 2026 05:43:24 +0900 Subject: style(autoload): use raw strings for the PHP heredoc templates The generated-file templates are heredocs in Composer's AutoloadGenerator. Writing them as raw string literals keeps the emitted PHP laid out the way it is written out, matching the blocks in getAutoloadRealFile and getStaticFile that already use them. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/autoload/autoload_generator.rs | 141 ++++++++++++++++++++-- 1 file changed, 130 insertions(+), 11 deletions(-) (limited to 'crates/shirabe/src/autoload/autoload_generator.rs') diff --git a/crates/shirabe/src/autoload/autoload_generator.rs b/crates/shirabe/src/autoload/autoload_generator.rs index 93dbca09..06225c08 100644 --- a/crates/shirabe/src/autoload/autoload_generator.rs +++ b/crates/shirabe/src/autoload/autoload_generator.rs @@ -217,12 +217,28 @@ impl AutoloadGenerator { let app_base_dir_code = str_replace("__DIR__", "$vendorDir", &app_base_dir_code); let mut namespaces_file = format!( - "