Do that more nicely.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2061 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2007-02-20 19:12:30 +00:00
parent 47d6917c0f
commit 7634b9fa41
@@ -359,9 +359,9 @@ public class GenRecordTask extends Task
protected static final String FIELDS_END = MARKER + "FIELDS END";
/** A regular expression for matching the package declaration. */
protected static final Pattern PACKAGE_PATTERN = Pattern.compile("^\\s*package\\s+(\\S+)\\W");
protected static final Pattern PACKAGE_PATTERN = Pattern.compile("^\\s*package\\s+(\\w+)\\W");
/** A regular expression for matching the class or interface declaration. */
protected static final Pattern NAME_PATTERN = Pattern.compile(
"^\\s*public\\s+(?:abstract\\s+)?(interface|class)\\s+(\\S+)(\\W|$)(<)?");
"^\\s*public\\s+(?:abstract\\s+)?(interface|class)\\s+(\\w+)(\\W|$)");
}