aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com
diff options
context:
space:
mode:
authorJonas Herzig <me@johni0702.de>2022-05-24 15:12:35 +0200
committerJonas Herzig <me@johni0702.de>2022-05-24 15:13:28 +0200
commit1e3fab153d134f7dec5601cbdbca3c27d6aebc58 (patch)
treecce4163f1a6676fdccefe692ee709bebe862eaa7 /src/main/kotlin/com
parent13fc8167f862ba136718777289bb7d314f4db874 (diff)
downloadRemap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.tar.gz
Remap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.tar.bz2
Remap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.zip
Support matching literal with @Pattern
Diffstat (limited to 'src/main/kotlin/com')
-rw-r--r--src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt2
1 files changed, 2 insertions, 0 deletions
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
}