mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
spaces problem fix
This commit is contained in:
+3
-1
@@ -174,7 +174,9 @@ public class PatternBasedInjectionHelper {
|
||||
final char ch = curPos++ < text.length()? text.charAt(curPos-1) : 0;
|
||||
switch (curFrame.state) {
|
||||
case init:
|
||||
if (Character.isJavaIdentifierStart(ch)) {
|
||||
if (Character.isWhitespace(ch)) {
|
||||
}
|
||||
else if (Character.isJavaIdentifierStart(ch)) {
|
||||
curString.append(ch);
|
||||
curFrame.state = State.name;
|
||||
}
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ public class BaseInjectionPanel extends AbstractInjectionPanel<BaseInjection> {
|
||||
s = s.substring(1).trim();
|
||||
}
|
||||
else {
|
||||
sb.append(s);
|
||||
sb.append(s.trim());
|
||||
continue;
|
||||
}
|
||||
if (sb.length() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user