Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Implement block parsing for code #98

Merged
merged 37 commits into from
Jan 3, 2021
Merged

Implement block parsing for code #98

merged 37 commits into from
Jan 3, 2021

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Jan 2, 2021

Blocks (e.g. [[div]], [[module xxx]], etc., need special handling since they all start with token [[ (or [[*).

Here are the beginnings of a generic implementation that allows specific blocks to parse while minimizing weird patterns and code duplication. This PR adds support for [[code]] only.

PR continues from #94, which had a large-scale refactor in preparation for this.

Ammon Smith added 30 commits January 2, 2021 18:01
Should favor ParseCondition instead.
Since this requires newlines, we avoid the double newline check.
@emmiegit emmiegit changed the title Implement block parsing Implement block parsing for code Jan 3, 2021
@emmiegit emmiegit marked this pull request as ready for review January 3, 2021 13:18
@emmiegit emmiegit merged commit bf60581 into master Jan 3, 2021
@emmiegit emmiegit deleted the FTML-41 branch January 3, 2021 13:33
@emmiegit emmiegit mentioned this pull request Jan 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant