--- a/langtools/make/tools/propertiesparser/parser/MessageLine.java Wed Jun 14 20:05:01 2017 +0000
+++ b/langtools/make/tools/propertiesparser/parser/MessageLine.java Thu Jun 15 13:44:42 2017 +0200
@@ -32,7 +32,7 @@
public class MessageLine {
static final Pattern emptyOrCommentPattern = Pattern.compile("( *#.*)?");
- static final Pattern typePattern = Pattern.compile("[-\\\\'A-Z\\.a-z ]+( \\([A-Za-z 0-9]+\\))?");
+ static final Pattern typePattern = Pattern.compile("[-\\\\'A-Z\\.a-z ]+( \\([-A-Za-z 0-9]+\\))?");
static final Pattern infoPattern = Pattern.compile(String.format("# ([0-9]+: %s, )*[0-9]+: %s",
typePattern.pattern(), typePattern.pattern()));