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

PHP: Attribute support #2055

Closed
ancarda opened this issue Jan 28, 2022 · 0 comments · Fixed by #2347
Closed

PHP: Attribute support #2055

ancarda opened this issue Jan 28, 2022 · 0 comments · Fixed by #2347
Milestone

Comments

@ancarda
Copy link
Contributor

ancarda commented Jan 28, 2022

PHP 8 introduced support for Attributes: https://www.php.net/manual/en/language.attributes.overview.php

Pygments currently treats attributes as a comment, so they look like this:

<?php

#[Route('/blog', name: 'blog_', requirements: ['_locale' => 'en|es|fr'])]
final class IndexController extends AbstractController
{

Rather than this (IntelliJ):

attributes@2x

@Anteru Anteru added this to the 2.15.0 milestone Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants