mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
highlights(hack): add keywords implements
This commit is contained in:
parent
cc0bdabe5f
commit
6a61461d18
4 changed files with 25 additions and 4 deletions
12
tests/query/highlights/hack/shapes.hack
Normal file
12
tests/query/highlights/hack/shapes.hack
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class C extends Superclass implements Iface {
|
||||
// ^ keyword ^ keyword
|
||||
use Trait;
|
||||
// < include
|
||||
const type X = shape(
|
||||
// <- keyword ^ type.builtin
|
||||
"a" => int,
|
||||
// ^ string
|
||||
"b" => string,
|
||||
// ^ type.builtin
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue