mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -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
8
tests/query/highlights/hack/async-functions.hack
Normal file
8
tests/query/highlights/hack/async-functions.hack
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
async function func0(): void {}
|
||||
// ^ type.builtin
|
||||
async function func1<T1 as int>() {}
|
||||
// ^ type.builtin
|
||||
// ^ keyword.operator
|
||||
|
||||
|
||||
async ($x) ==> $x + 1;
|
||||
Loading…
Add table
Add a link
Reference in a new issue