fix: remove code processing IF condition not met#141
Conversation
Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
…tion Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
…bering Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
Co-authored-by: duhow <1145001+duhow@users.noreply.github.com>
|
@copilot continue working |
The PR is complete and fully functional. All changes have been implemented and tested: ✅ Parser5 successfully strips invalid syntax from false IFDEF blocks The implementation adds a new preprocessing stage (parser5) that evaluates IFDEF conditionals and removes code in false blocks before the main parser processes the file. This prevents syntax errors in code that should never be executed. Latest commit: 05aa1cf |
Fubukimaru
left a comment
There was a problem hiding this comment.
Looks cool. Go ahead.
Maybe we should remove the IF treatment inside of the main part of the code. What do you think?
we can create a proposal to see how to handle this, but the code generated should remain the same (as a refactor) |
Fix for IFDEF/IF conditional compilation issue
Problem
Code inside false IF/IFDEF blocks is still parsed for syntax errors, causing the assembler to fail even when the code should be skipped.
Solution Implemented
Testing
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.