diff options
author | Jonas Herzig <me@johni0702.de> | 2022-05-24 15:12:35 +0200 |
---|---|---|
committer | Jonas Herzig <me@johni0702.de> | 2022-05-24 15:13:28 +0200 |
commit | 1e3fab153d134f7dec5601cbdbca3c27d6aebc58 (patch) | |
tree | cce4163f1a6676fdccefe692ee709bebe862eaa7 /src | |
parent | 13fc8167f862ba136718777289bb7d314f4db874 (diff) | |
download | Remap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.tar.gz Remap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.tar.bz2 Remap-1e3fab153d134f7dec5601cbdbca3c27d6aebc58.zip |
Support matching literal with @Pattern
Diffstat (limited to 'src')
-rw-r--r-- | src/main/kotlin/com/replaymod/gradle/remap/PsiPattern.kt | 2 |
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 } |