Add coloration for @prop and @block Twig comments from Symfony UX#2545
Add coloration for @prop and @block Twig comments from Symfony UX#2545Kocal wants to merge 1 commit intoHaehnchen:masterfrom
@prop and @block Twig comments from Symfony UX#2545Conversation
Close Haehnchen#2544 Mainly coded through Claude Opus 4.5
|
I did a quick run to fix the tests https://github.com/Haehnchen/idea-php-symfony2-plugin/tree/pr-2545. By this the color changed to provide more defaults. Just maybe prop/block name should have a better twig/default color. i will check what is suitable and merge the implentation then.
it would be even nice to have this as a documented standard, its also important for agents nowadays. It could also just easily take as the source for auto completion on the consuming side.
|
|
Opened twigphp/Twig#4768 |
|
If twigphp/Twig#4770 gets merged, this PR will become useless and will have to be closed, since the description/docs will be parts of |



Close #2544
Mainly coded through Claude Opus 4.5, let me know what you think:

I re-used the colors from PHPDoc, but maybe it would be better if we re-use more "Twig" colors.