Skip to content

[TASK] Replace the subparser in the include directive #556

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

Merged
merged 3 commits into from
Sep 1, 2023

Conversation

linawolf
Copy link
Contributor

No description provided.

@linawolf linawolf marked this pull request as draft August 25, 2023 06:48
@linawolf
Copy link
Contributor Author

@jaapio I cannt seem to make this work in the include directive. Not sure why. We might need the subparser concept here for some reason?

@jaapio
Copy link
Member

jaapio commented Aug 25, 2023

The issue you might be facing is that the injected rule is not a shared instance but an empty new instance?


Aside from that, I'm not entirely sure how this should work, as I understood the include directive it does some copy past magic in the background to literally make the included document part of it's parent? For us this means that the DocumentParserContext will be the same for the included document as it was for it's parent.

linawolf and others added 2 commits September 1, 2023 11:06
Includes should use the document rule, this makes them share the
same context as the original parent document.
@jaapio jaapio force-pushed the task/include-directive branch from dd28552 to 3de75ed Compare September 1, 2023 09:38
@linawolf linawolf marked this pull request as ready for review September 1, 2023 09:39
@linawolf linawolf changed the title [WIP][TASK] Replace the subparser in the include directive [TASK] Replace the subparser in the include directive Sep 1, 2023
@linawolf linawolf merged commit 48a68f7 into main Sep 1, 2023
@linawolf linawolf deleted the task/include-directive branch September 1, 2023 09:55
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