IDEA-165641 IDEA 2016.3.1: Wrong unused import recognition in xml files

This commit is contained in:
Dmitry Avdeev
2016-12-21 14:31:37 +03:00
parent 8092cca52f
commit cbbc7d899b
@@ -71,7 +71,7 @@ public class XmlRefCountHolder {
private final Set<String> myUsedPrefixes = new HashSet<>();
private final Set<String> myUsedNamespaces = new HashSet<>();
private static final Pattern PREFIX_PATTERN = Pattern.compile("\\w+:");
private static final Pattern PREFIX_PATTERN = Pattern.compile("[\\w_][\\w_.]*:");
@Nullable
public static XmlRefCountHolder getRefCountHolder(@NotNull XmlFile file) {