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

Preserve comments in legacy77 that don't precede a continuation #103

Merged
merged 2 commits into from
May 10, 2019

Conversation

burz
Copy link
Collaborator

@burz burz commented May 10, 2019

This PR fixes part of issue #102, so that the BlComments are now included in the AST so long as they are not directly preceding a continuation.

The changes work by modifying the lexer to only skip past newline preceded comments iff all the comments that follow in succession are terminated by a continuation. Otherwise, the comment is not skipped.

@ruoso @gridaphobe

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.

3 participants