mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
highlights(hack): extend queries add tests
This commit is contained in:
parent
77c006eb08
commit
cc0bdabe5f
10 changed files with 280 additions and 5 deletions
10
tests/query/highlights/hack/xhp.hack
Normal file
10
tests/query/highlights/hack/xhp.hack
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
$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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue