Skip to content

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.

3 participants