mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Reverted percent formatting by default for MySQL parser compatibility with Python (PY-10771)
This commit is contained in:
@@ -81,7 +81,8 @@ public class PyInjectionUtil {
|
||||
*/
|
||||
@NotNull
|
||||
public static InjectionResult registerStringLiteralInjection(@NotNull PsiElement element, @NotNull MultiHostRegistrar registrar) {
|
||||
return processStringLiteral(element, registrar, "", "", Formatting.NONE);
|
||||
// Assume percent formatting since the MySQL parser cannot handle Python-style substitutions
|
||||
return processStringLiteral(element, registrar, "", "", Formatting.PERCENT);
|
||||
}
|
||||
|
||||
private static boolean isStringLiteralPart(@NotNull PsiElement element, @Nullable PsiElement context) {
|
||||
|
||||
Reference in New Issue
Block a user