From 3886911a5707a915567942163bf1cba5f466bd78 Mon Sep 17 00:00:00 2001 From: qaate47 Date: Tue, 30 Jul 2024 01:47:46 +0200 Subject: [PATCH] fix #endregion --- src/acts/compiler/preprocessor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acts/compiler/preprocessor.hpp b/src/acts/compiler/preprocessor.hpp index b272955..840c99b 100644 --- a/src/acts/compiler/preprocessor.hpp +++ b/src/acts/compiler/preprocessor.hpp @@ -251,7 +251,7 @@ namespace acts::compiler::preprocessor { else if (line.starts_with("#warning")) { errorHandler(alogs::LVL_WARNING, lineIdx, std::string{ line.substr(line.length() > 8 ? 9 : 8) }); } - else if (!line.starts_with("#region") && line.starts_with("#endregion")) { + else if (!line.starts_with("#region") && !line.starts_with("#endregion")) { if (eraseCtx.empty() || !eraseCtx.top()) { lineStart = next + 1; continue;