From bd7a171095b09b10d38450a7a76f28262f4fe38b Mon Sep 17 00:00:00 2001 From: zer0-star Date: Thu, 14 Sep 2023 20:18:55 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92?= =?UTF-8?q?=E5=8A=B9=E7=8E=87=E7=9A=84=E3=81=AB=E5=89=8A=E9=99=A4=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parse.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/parse.hpp b/src/parse.hpp index 3ff50d4..8739d6d 100644 --- a/src/parse.hpp +++ b/src/parse.hpp @@ -507,6 +507,10 @@ namespace almo { all_line_str += '\n'; } + std::regex comment = std::regex(""); + + all_line_str = std::regex_replace(all_line_str, comment, ""); + std::vector processed_lines; // 改行で分割 @@ -542,4 +546,4 @@ namespace almo { return {meta_data, BlockParser::processer({processed_lines.begin() + meta_data_end, processed_lines.end()})}; } -} \ No newline at end of file +}