langtools/make/tools/propertiesparser/parser/MessageLine.java
changeset 45504 ea7475564d07
parent 34752 9c262a013456
equal deleted inserted replaced
45503:d23ae2d67a5d 45504:ea7475564d07
    30  * The lines form a doubly linked list for simple navigation.
    30  * The lines form a doubly linked list for simple navigation.
    31  */
    31  */
    32 public class MessageLine {
    32 public class MessageLine {
    33 
    33 
    34     static final Pattern emptyOrCommentPattern = Pattern.compile("( *#.*)?");
    34     static final Pattern emptyOrCommentPattern = Pattern.compile("( *#.*)?");
    35     static final Pattern typePattern = Pattern.compile("[-\\\\'A-Z\\.a-z ]+( \\([A-Za-z 0-9]+\\))?");
    35     static final Pattern typePattern = Pattern.compile("[-\\\\'A-Z\\.a-z ]+( \\([-A-Za-z 0-9]+\\))?");
    36     static final Pattern infoPattern = Pattern.compile(String.format("# ([0-9]+: %s, )*[0-9]+: %s",
    36     static final Pattern infoPattern = Pattern.compile(String.format("# ([0-9]+: %s, )*[0-9]+: %s",
    37             typePattern.pattern(), typePattern.pattern()));
    37             typePattern.pattern(), typePattern.pattern()));
    38 
    38 
    39     public String text;
    39     public String text;
    40     MessageLine prev;
    40     MessageLine prev;