Microsoft/monaco-editor
Vedi su GitHub[Feature Request] Add suuport for php8 attributes
Open
#2898 aperta il 18 gen 2022
feature-requestgrammarshelp wanted
Metriche repository
- Star
- (14.836 star)
- Metriche merge PR
- (Merge medio 6h 26m) (15 PR mergiate in 30 g)
Descrizione
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
In the php 8 there is a new mechanism, which is attributes. However, in editor, they look like comments. E.g.
#[Attr(...), Attr(...)]
private int $a;

In single lines it can be skipped, but attributes can be multilines, what makes it totally wrongly colored. E.g.
#[ArrayShape([
'id' => 'int',
'month' => 'int',
'day' => 'int',
'usual' => 'int'
])]
