PHP 8 attributes are highlighted as comments #1307
cizordj
started this conversation in
^ Lexer Requests and Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
PHP 8 attributes are mistakenly highlighted as comments.
Attributes are a new thing in PHP, and when they came out, most text editors were showing them as 'comments'.
This is a problem because comments are harder to see depending on the theme you've selected.
To Reproduce
Chroma playground
Chroma CLI
Input text:
Command:
chroma \ -s catppuccin-latte \ --html \ --html-lines \ --html-lines-table \ --html-inline-styles \ input.php > output.htmlAll reactions