Skip to content

Commit bab6e5b

Browse files
committed
[TwigComponent] Minimal support of comment lines
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 :)
1 parent 63f4160 commit bab6e5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TwigComponent/tests/Unit/TwigPreLexerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ public static function getLexTests(): iterable
392392
yield 'component_with_comment_lines_between_args' => [
393393
<<<TWIG
394394
<twig:foo
395-
# comment
395+
# comment
396396
foo="foo"
397-
# comment
397+
# comment
398398
bar="bar"
399399
/>
400400
TWIG,

0 commit comments

Comments
 (0)