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
6
tests/query/highlights/hack/as-foreach.hack
Normal file
6
tests/query/highlights/hack/as-foreach.hack
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
foreach (($array as vec[]) as $item) {}
|
||||
// ^ repeat
|
||||
// ^ type
|
||||
|
||||
# Our expectation test for the code below intentionally includes an ERROR.
|
||||
foreach ($array as vec[] as $item) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue