diff --git a/java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java b/java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java index d5b0d516c790..a8197b1c1b23 100644 --- a/java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java +++ b/java/java-analysis-impl/src/com/intellij/codeInsight/daemon/impl/analysis/HighlightUtil.java @@ -3096,7 +3096,7 @@ public class HighlightUtil extends HighlightUtilBase { MODULES(LanguageLevel.JDK_1_9, "feature.modules"), ENHANCED_SWITCH(LanguageLevel.JDK_12_PREVIEW, "feature.enhanced.switch"), SWITCH_EXPRESSION(LanguageLevel.JDK_12_PREVIEW, "feature.switch.expressions"), - TEXT_BLOCKS(LanguageLevel.JDK_X, "feature.text.blocks"), + TEXT_BLOCKS(LanguageLevel.JDK_13_PREVIEW, "feature.text.blocks"), RAW_LITERALS(LanguageLevel.JDK_X, "feature.raw.literals"); private final LanguageLevel level; diff --git a/java/java-psi-api/src/com/intellij/openapi/projectRoots/JavaSdkVersion.java b/java/java-psi-api/src/com/intellij/openapi/projectRoots/JavaSdkVersion.java index 85c9cac34035..97a6778191ac 100644 --- a/java/java-psi-api/src/com/intellij/openapi/projectRoots/JavaSdkVersion.java +++ b/java/java-psi-api/src/com/intellij/openapi/projectRoots/JavaSdkVersion.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.projectRoots; import com.intellij.pom.java.LanguageLevel; @@ -27,7 +27,8 @@ public enum JavaSdkVersion { JDK_1_9(LanguageLevel.JDK_1_9), JDK_10(LanguageLevel.JDK_10), JDK_11(LanguageLevel.JDK_11), - JDK_12(LanguageLevel.JDK_12); + JDK_12(LanguageLevel.JDK_12), + JDK_13(LanguageLevel.JDK_13); private final LanguageLevel myMaxLanguageLevel; diff --git a/java/java-psi-api/src/com/intellij/pom/java/LanguageLevel.java b/java/java-psi-api/src/com/intellij/pom/java/LanguageLevel.java index 371d752524c6..7b1068f56f45 100644 --- a/java/java-psi-api/src/com/intellij/pom/java/LanguageLevel.java +++ b/java/java-psi-api/src/com/intellij/pom/java/LanguageLevel.java @@ -1,4 +1,4 @@ -// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.pom.java; import com.intellij.core.JavaCoreBundle; @@ -32,6 +32,8 @@ public enum LanguageLevel { JDK_11(JavaCoreBundle.message("jdk.11.language.level.description"), 11), JDK_12(JavaCoreBundle.message("jdk.12.language.level.description"), 12), JDK_12_PREVIEW(JavaCoreBundle.message("jdk.12.preview.language.level.description"), 12), + JDK_13(JavaCoreBundle.message("jdk.13.language.level.description"), 13), + JDK_13_PREVIEW(JavaCoreBundle.message("jdk.13.preview.language.level.description"), 13), JDK_X(JavaCoreBundle.message("jdk.X.language.level.description"), 12); public static final LanguageLevel HIGHEST = JDK_12; diff --git a/java/java-psi-api/src/messages/JavaCoreBundle.properties b/java/java-psi-api/src/messages/JavaCoreBundle.properties index f9fa50f74577..e5ccffb0580a 100644 --- a/java/java-psi-api/src/messages/JavaCoreBundle.properties +++ b/java/java-psi-api/src/messages/JavaCoreBundle.properties @@ -12,4 +12,6 @@ jdk.10.language.level.description=10 - Local variable type inference jdk.11.language.level.description=11 - Local variable syntax for lambda parameters jdk.12.language.level.description=12 - No new language features jdk.12.preview.language.level.description=12 (Preview) - Switch expressions +jdk.13.language.level.description=13 - No new language features +jdk.13.preview.language.level.description=13 (Preview) - Text blocks jdk.X.language.level.description=X - Experimental features