IDEA-131456 //noinspection InspectionName(s) should fully support comments

This commit is contained in:
Anna Kozlova
2014-10-20 19:47:14 +02:00
parent 8b7a2eebad
commit 6780d694c7
2 changed files with 10 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Suppress for class" "false"
public class Test {
{
int i = 0;
//noinspection SillyAssignment my very long comment
i = i;
}
}
@@ -52,7 +52,7 @@ public class SuppressionUtil extends SuppressionUtilCore {
"(\\s*,\\s*" + LocalInspectionTool.VALID_ID_PATTERN + ")*)\\s*\\w*";
@NonNls
public static final Pattern SUPPRESS_IN_LINE_COMMENT_PATTERN = Pattern.compile("//" + COMMON_SUPPRESS_REGEXP); // for Java, C, JS line comments
public static final Pattern SUPPRESS_IN_LINE_COMMENT_PATTERN = Pattern.compile("//" + COMMON_SUPPRESS_REGEXP + ".*"); // for Java, C, JS line comments
@NonNls
public static final String ALL = "ALL";