From 1e3fab153d134f7dec5601cbdbca3c27d6aebc58 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Tue, 24 May 2022 15:12:35 +0200 Subject: Support matching literal with @Pattern --- src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt index 95d6156..9a067da 100644 --- a/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt +++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt @@ -85,6 +85,8 @@ internal class PsiPattern( && match(pattern.expression, expr.expression) is PsiNewExpression -> expr is PsiNewExpression && match(pattern.argumentList, expr.argumentList) + is PsiLiteralExpression -> expr is PsiLiteralExpression + && pattern.text == expr.text else -> false } -- cgit