Skip to content

Commit

Permalink
[TwigComponent] Minimal support of comment lines
Browse files Browse the repository at this point in the history
Twig introduced the inline comments in twigphp/Twig#4349

This PR add minimal support for it the PreLexer / HTML syntax

```twig
<twig:Button
    # comment
    bar="bar"
/>
```

I'd like some IRL feedbacks on this one :)
  • Loading branch information
smnandre committed Dec 22, 2024
1 parent 63f4160 commit bab6e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TwigComponent/tests/Unit/TwigPreLexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,9 @@ public static function getLexTests(): iterable
yield 'component_with_comment_lines_between_args' => [
<<<TWIG
<twig:foo
# comment
# comment
foo="foo"
# comment
# comment
bar="bar"
/>
TWIG,
Expand Down

0 comments on commit bab6e5b

Please sign in to comment.