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

Error when less than 2 tags are enabled #124

Open
a3kov opened this issue Aug 4, 2023 · 1 comment
Open

Error when less than 2 tags are enabled #124

a3kov opened this issue Aug 4, 2023 · 1 comment
Labels

Comments

@a3kov
Copy link

a3kov commented Aug 4, 2023

defmodule Parser do
    use Solid.Parser.Base, excluded_tags: [
      Solid.Tag.Break,
      Solid.Tag.Continue,
      Solid.Tag.Counter,
      Solid.Tag.Comment,
      Solid.Tag.Assign,
      Solid.Tag.Capture,
      #Solid.Tag.If,
      Solid.Tag.Case,
      Solid.Tag.For,
      Solid.Tag.Raw,
      Solid.Tag.Cycle,
      Solid.Tag.Render
    ]
  end

gives the following error:
** (FunctionClauseError) no function clause matching in NimbleParsec.choice/3
If I comment out (enable) a second tag, the error disappears.

@edgurgel
Copy link
Owner

edgurgel commented Aug 5, 2023

Interesting! Thanks for the bug report

@edgurgel edgurgel added the bug label Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants