Skip to content

Add syntax support for php8 attributes

In php8 there is a possibility to use attributes, the syntax is:

#[Attr(...), Attr(...)]
private int $a;

The syntax hilighter uses # sign as line-comment what makes attributes wrongly colored. Example:

	#[ArrayShape([
		'id' => 'int',
		'month' => 'int',
		'day' => 'int',
		'usual' => 'int'
	])]