This is an automated email from the ASF dual-hosted git repository. paulk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 5579f1b1ea2bd0463d762ef12df472e8d4572e55 Author: Paul King <[email protected]> AuthorDate: Wed Jul 16 14:27:56 2025 +1000 GROOVY-8162: Update Groovysh to JLine3 (console variables may contain underscores) --- .../src/main/groovy/org/apache/groovy/groovysh/Main.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Main.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Main.groovy index 928b9c1f42..e6a0630649 100644 --- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Main.groovy +++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Main.groovy @@ -303,7 +303,7 @@ class Main { s.endsWith(' \\') ? s[0..-3] : s }.collect {s -> // repl command parsing assumes whitespace around '=' - s.matches(/[a-zA-Z0-9.]*=\S.*/) ? s.replaceFirst('=', ' = ') : s + s.matches(/[a-zA-Z0-9._]*=\S.*/) ? s.replaceFirst('=', ' = ') : s }.join('\n') line = parser.getCommand(line).startsWith("/!") ? line.replaceFirst("/!", "/! ") : line if (line.startsWith(':')) {
