Skip to content

[TwigComponent] Component with html syntax erroring #838

Closed
@norkunas

Description

@norkunas

Lexer tries to consume code even when it is commented out.
image

part of trace:

Twig\Error\SyntaxError:
Expected attribute name when parsing the "<twig:Icon" syntax.

  at templates/Admin/base.html.twig:35
  at Symfony\UX\TwigComponent\Twig\TwigPreLexer->consumeComponentName('Expected attribute name when parsing the "<twig:Icon" syntax.')
     (vendor/symfony/ux-twig-component/src/Twig/TwigPreLexer.php:158)
  at Symfony\UX\TwigComponent\Twig\TwigPreLexer->consumeAttributeName('Icon')
     (vendor/symfony/ux-twig-component/src/Twig/TwigPreLexer.php:179)
  at Symfony\UX\TwigComponent\Twig\TwigPreLexer->consumeAttributes('Icon')
     (vendor/symfony/ux-twig-component/src/Twig/TwigPreLexer.php:68)
  at Symfony\UX\TwigComponent\Twig\TwigPreLexer->preLexComponents('...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions