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 the include directive #10

Merged
merged 1 commit into from
Apr 1, 2020
Merged

Fix handling of the include directive #10

merged 1 commit into from
Apr 1, 2020

Conversation

mohammed90
Copy link
Member

The bug in handling of the include directive is two parts:

  • The doInclude method almost spliced the token set correctly, if it weren't for an off-by-one error.

  • After importing and splicing the token set, the current wasn't updated to token from the included file. So the same include token became the active directive in that loop.

The bug in handling of the `include` directive is two parts:
- The doInclude method almost spliced the token set correctly, if it weren't for an off-by-one error.
- After importing and splicing the token set, the current wasn't updated to token from the included file. So the same `include` token became the active directive in that loop.
@mohammed90 mohammed90 requested a review from mholt April 1, 2020 01:08
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, nice work!

@mholt mholt merged commit 580d27d into master Apr 1, 2020
@mholt mholt deleted the fix-include branch April 1, 2020 17:11
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.

2 participants