mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
cleanup silly dfa class distinctions (e.g. ({1},{2}))
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class X {
|
||||
|
||||
public static void buildRegexp(String pattern, int exactPrefixLen, boolean forCompletion) {
|
||||
System.out.println(!forCompletion && pattern.endsWith(" "));
|
||||
System.out.println(exactPrefixLen == 0);
|
||||
boolean prevIsUppercase = false;
|
||||
for (int i = 0; i < pattern.length(); i++) {
|
||||
final char c = pattern.charAt(i);
|
||||
if (c == '*') { }
|
||||
else if (c == ' ') { }
|
||||
else if (c == ':' || prevIsUppercase) { }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user