groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] branch master updated: enabling antlr4 based curly counting lexer in groovysh (keep configuration to match GROOVY_3_0_X)
Date Fri, 27 Sep 2019 08:40:17 GMT
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


The following commit(s) were added to refs/heads/master by this push:
     new f75e9ae  enabling antlr4 based curly counting lexer in groovysh (keep configuration
to match GROOVY_3_0_X)
f75e9ae is described below

commit f75e9ae10f01ed3e9358723da93c5367299e147a
Author: Paul King <paulk@asert.com.au>
AuthorDate: Fri Sep 27 18:40:05 2019 +1000

    enabling antlr4 based curly counting lexer in groovysh (keep configuration to match GROOVY_3_0_X)
---
 .../src/main/groovy/org/apache/groovy/groovysh/Groovysh.groovy          | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Groovysh.groovy
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Groovysh.groovy
index 12fe665..d0fc0ff 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Groovysh.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/Groovysh.groovy
@@ -92,6 +92,7 @@ class Groovysh extends Shell {
     String evictedLine  // remembers the command which will get evicted if history is full
 
     PackageHelper packageHelper
+    private CompilerConfiguration configuration
 
     Groovysh(final ClassLoader classLoader, final Binding binding, final IO io, final Closure
registrar) {
         this(classLoader, binding, io, registrar, CompilerConfiguration.DEFAULT)
@@ -110,6 +111,7 @@ class Groovysh extends Shell {
         interp = interpreter
         actualRegistrar.call(this)
         this.packageHelper = new PackageHelperImpl(classLoader)
+        this.configuration = configuration
     }
 
     private static Closure createDefaultRegistrar(final ClassLoader classLoader) {


Mime
View raw message