highlights(hack): fix captures

This commit is contained in:
ObserverOfTime 2022-11-20 15:14:25 +02:00
parent bedc763361
commit 6725bef5ce
3 changed files with 29 additions and 20 deletions

View file

@ -2,21 +2,21 @@ class Box<T> {
// ^ type
// ^ type
protected T $data;
// ^ keyword
// ^ type.qualifier
// ^ type
public function __construct(T $data) {
// ^ type
// ^ parameter
// ^ keyword.function
// ^ keyword
// ^ type.qualifier
// ^ method
$this->data = $data;
}
public function getData(): T {
// ^ method
// ^ keyword
// ^ type.qualifier
return $this->data;
// ^ operator
// ^ variable.builtin

View file

@ -5,8 +5,8 @@ use type Facebook\XHP\HTML\{XHPHTMLHelpers, a, form};
final xhp class a_post extends x\element {
// ^ keyword
// ^ keyword
// ^ type.qualifier
// ^ type.qualifier
// ^ keyword
use XHPHTMLHelpers;