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

Multiple New Tree Blocks are Overwritten #44

Open
Evelios opened this issue Sep 21, 2020 · 1 comment
Open

Multiple New Tree Blocks are Overwritten #44

Evelios opened this issue Sep 21, 2020 · 1 comment

Comments

@Evelios
Copy link

Evelios commented Sep 21, 2020

When creating two or more Mark.tree blocks within a single document using Mark.manyOf , then the first tree is used for both when parsing the emu file. For example if you have two mark blocks List and Tree, with the block name |> List and |> Tree respectively, then you can only make blocks using those two names as confirmed by the compiler. However, the first item in your manyOf is what is used when the document is actually parsed. For example if you are using Mark.manyOf [ list, tree ] then all |> Tree elements within a document are then are parsed as List elements. The reverse then happend if you do Mark.manyOf [ tree, list ]

@dzuk-mutant
Copy link

I assume this repo is no longer being worked on but I can confirm that I am facing the same issue - when trying to get multiple blocks parsed, whichever tree block is mentioned first will overwrite any others.

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

No branches or pull requests

2 participants