aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/xhp-intro.hack
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-12-24 12:52:21 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commit10dd49958c96f86c8247c715bd20a6681afc1d8b (patch)
tree511849caff160e818f4dd08a6106137dcadb620d /tests/query/highlights/xhp-intro.hack
parentfeat(injections): add printf format strings (diff)
downloadnvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.gz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.bz2
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.lz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.xz
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.tar.zst
nvim-treesitter-10dd49958c96f86c8247c715bd20a6681afc1d8b.zip
chore(tests): consistent captures
Diffstat (limited to 'tests/query/highlights/xhp-intro.hack')
-rw-r--r--tests/query/highlights/xhp-intro.hack16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/query/highlights/xhp-intro.hack b/tests/query/highlights/xhp-intro.hack
index 942d2ff00..ccbe60c57 100644
--- a/tests/query/highlights/xhp-intro.hack
+++ b/tests/query/highlights/xhp-intro.hack
@@ -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;
}