Skip to content

Commit

Permalink
fix #endregion
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Jul 29, 2024
1 parent a110cb9 commit 3886911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acts/compiler/preprocessor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3886911

Please sign in to comment.