nvim-treesitter/tests/query/highlights/hack/xhp.hack

11 lines
294 B
Text
Raw Normal View History

$user_name = 'Fred';
echo "<tt>Hello <strong>$user_name</tt></strong>";
// XHP: Typechecked, well-formed, and secure
$user_name = 'Andrew';
$xhp = <tt>Hello <strong>{$user_name}</strong></tt>;
2023-12-24 12:52:21 +01:00
// ^ @tag
// ^ @tag
// ^ @string
echo await $xhp->toStringAsync();