1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-26 14:20:04 +08:00
SpaceVim/bundle/nvim-treesitter/tests/query/highlights/hack/xhp.hack
2022-04-14 12:01:23 +08:00

11 lines
291 B
Plaintext
Vendored

$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>;
// ^ tag
// ^ tag
// ^ string
echo await $xhp->toStringAsync();