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

r_comp: Don't treat trailing space as comment continuation #292

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

jefft0
Copy link
Collaborator

@jefft0 jefft0 commented Nov 7, 2024

The Replicode spec says that a comment ending in " .." is continued to the next line. The preprocessor handles this and checks for "..". But it also treats a single space as a comment continuation. This causes problems since it is common for a comment to end in a space (since it's difficult to see in the text editor). This appeared as a problem in Linux where the end of line is just a newline (not like carriagereturn/newline in Windows). The handling of end of lines is a separate issue. This PR simply changes the preprocessor to not treat an ending space as a comment continuation.

@jefft0 jefft0 changed the title r_comp: In preprocessor parse, don't treat trailing space as comment … r_comp: Don't treat trailing space as comment continuation Nov 7, 2024
@jefft0 jefft0 added the bug Something isn't working label Nov 7, 2024
@jefft0 jefft0 merged commit d3443ee into dev Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant