IDEA-78921 Groovy 1.8: dollar slashy strings are erroneously highlighted as not allowed in Groovy 1.8.0

This commit is contained in:
Maxim.Medvedev
2011-12-15 15:36:45 +04:00
parent bf44c4fa27
commit b084453f8d
@@ -852,7 +852,7 @@ public class GroovyAnnotator extends GroovyElementVisitor implements Annotator {
final GroovyConfigUtils config = GroovyConfigUtils.getInstance();
if ("$/".equals(quote)) {
if (!config.isVersionAtLeast(regex, GroovyConfigUtils.GROOVY1_9)) {
if (!config.isVersionAtLeast(regex, GroovyConfigUtils.GROOVY1_8)) {
myHolder
.createErrorAnnotation(regex, GroovyBundle.message("dollar.slash.strings.are.not.allowed.in.0", config.getSDKVersion(regex)));
}