You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/09/27 08:40:17 UTC

[groovy] branch master updated: enabling antlr4 based curly counting lexer in groovysh (keep configuration to match GROOVY_3_0_X)

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 <pa...@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) {