Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix handling of multiline comments #117

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alex-tdrn
Copy link

Fixes #116 by stripping multiline comments using the regex crate

@alex-tdrn alex-tdrn marked this pull request as draft February 23, 2025 12:49
@alex-tdrn
Copy link
Author

just realized that my solution can change the line count in the linker script, so the line index found by find_ram_in_linker_script is wrong

@alex-tdrn alex-tdrn force-pushed the fix_multiline_comments branch from 559f7e1 to 9be2190 Compare February 23, 2025 13:16
@alex-tdrn alex-tdrn marked this pull request as ready for review February 23, 2025 13:17
@jonathanpallant
Copy link
Contributor

I don't love having to use regular expressions here, but it does appear to resolve the issue.

Thoughts @Urhengulas? I'm minded to approve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiline comments break expression parsing
2 participants