File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,10 @@ public enum Format {
108
108
private static final String VAR_GROOVY_OPTIONS = "GROOVY_OPTIONS" ;
109
109
private static final String DEFAULT_NANORC_SYNTAX = "classpath:/nanorc/jnanorc" ;
110
110
private static final String REGEX_SYSTEM_VAR = "[A-Z]+[A-Z_]*" ;
111
- private static final String BASE_REGEX_VAR = "[\\ p{L}_$][\\ p{L}\\ p{N}_$]+ " ;
111
+ private static final String BASE_REGEX_VAR = "[\\ p{L}_$][\\ p{L}\\ p{N}_$]* " ;
112
112
private static final String REGEX_VAR = "(" + BASE_REGEX_VAR + ")" ;
113
113
private static final String METHOD_REGEX_VAR = "(" + BASE_REGEX_VAR + "|\" (?:[^\" \\ \\ ]|\\ \\ .)*\" )" ;
114
- private static final String ANNOTATIONS = "^ \\ s*( ?:@(?!interface)(?:[\\ p{L}_$][\\ p{L}\\ p{N}_$]*\\ .)*[\\ p{L}_$][\\ p{L}\\ p{N}_$]*(?:\\ ([^)]*\\ ))?\\ s*)*" ;
114
+ private static final String ANNOTATIONS = "(( ?:@(?!interface)(?:[\\ p{L}_$][\\ p{L}\\ p{N}_$]*\\ .)*[\\ p{L}_$][\\ p{L}\\ p{N}_$]*(?:\\ ([^)]*\\ ))?\\ s*)*\\ s+)? " ;
115
115
private static final String MODIFIERS = "(?:(?:public|protected|private|abstract|final|static|sealed|non-sealed|strictfp)\\ s+)*" ;
116
116
private static final String BODY = "\\ s*(.*?\\ {.*?})(|;|\n )$" ;
117
117
private static final String PARAMS = "\\ (([\\ p{L}\\ p{N}_ ,]*)\\ )" ;
You can’t perform that action at this time.
0 commit comments