mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10:04 -04:00
chore(tests): consistent captures
This commit is contained in:
parent
17fae3f4a3
commit
10dd49958c
60 changed files with 872 additions and 873 deletions
|
|
@ -5,23 +5,23 @@ use type Facebook\XHP\HTML\{XHPHTMLHelpers, a, form};
|
|||
|
||||
|
||||
final xhp class a_post extends x\element {
|
||||
// ^ type.qualifier
|
||||
// ^ type.qualifier
|
||||
// ^ keyword
|
||||
// ^ @type.qualifier
|
||||
// ^ @type.qualifier
|
||||
// ^ @keyword
|
||||
use XHPHTMLHelpers;
|
||||
|
||||
attribute string href @required;
|
||||
// ^ attribute
|
||||
// ^ @attribute
|
||||
attribute string target;
|
||||
// ^ keyword
|
||||
// ^ @keyword
|
||||
|
||||
<<__Override>>
|
||||
protected async function renderAsync(): Awaitable<x\node> {
|
||||
$id = $this->getID();
|
||||
|
||||
$anchor = <a>{$this->getChildren()}</a>;
|
||||
// ^ tag.delimiter
|
||||
// ^ tag
|
||||
// ^ @tag.delimiter
|
||||
// ^ @tag
|
||||
$form = (
|
||||
<form
|
||||
id={$id}
|
||||
|
|
@ -38,7 +38,7 @@ final xhp class a_post extends x\element {
|
|||
'document.getElementById("'.$id.'").submit(); return false;',
|
||||
);
|
||||
$anchor->setAttribute('href', '#');
|
||||
// ^ method.call
|
||||
// ^ @method.call
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue