From ca0aab28552e3fb0adcb8da66808b48f4a163b40 Mon Sep 17 00:00:00 2001 From: Bart van Helvert Date: Sun, 14 Aug 2022 23:14:06 +0200 Subject: [PATCH] Add `TYPE_USE` target to `@Language` annotation Fixes #43 --- .../src/main/java/org/intellij/lang/annotations/Language.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/intellij/lang/annotations/Language.java b/common/src/main/java/org/intellij/lang/annotations/Language.java index e71e0bb..ab9d10b 100644 --- a/common/src/main/java/org/intellij/lang/annotations/Language.java +++ b/common/src/main/java/org/intellij/lang/annotations/Language.java @@ -42,7 +42,7 @@ * Meta-annotation works only one level deep. */ @Retention(RetentionPolicy.CLASS) -@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, ANNOTATION_TYPE }) +@Target({ METHOD, FIELD, PARAMETER, LOCAL_VARIABLE, TYPE_USE, ANNOTATION_TYPE }) public @interface Language { /** * Language name like "JAVA", "HTML", "XML", "RegExp", etc.