summaryrefslogtreecommitdiff
path: root/tests/query/highlights/hack/shapes.hack
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2021-11-28 15:12:08 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-17 10:53:35 +0100
commit6a61461d18039de7ebc8fd51f2b6ec0d4e562431 (patch)
treed9fe134d95f58fafe4a3a8422483373429873ce4 /tests/query/highlights/hack/shapes.hack
parentcc0bdabe5f9a9705bf2992831dd45e95d116fe0c (diff)
highlights(hack): add keywords implements
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 00000000..0f6ab344
--- /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
+ );
+}