aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/hack/shapes.hack
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/hack/shapes.hack')
-rw-r--r--tests/query/highlights/hack/shapes.hack12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/query/highlights/hack/shapes.hack b/tests/query/highlights/hack/shapes.hack
new file mode 100644
index 000000000..0f6ab3448
--- /dev/null
+++ b/tests/query/highlights/hack/shapes.hack
@@ -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
+ );
+}