This is an automated email from the ASF dual-hosted git repository.

sunlan 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 8accc4ff23 Highlight `on` as GINQ keyword in groovySh
8accc4ff23 is described below

commit 8accc4ff23bee76b901f477166c5a1ec9d16268c
Author: Daniel Sun <sun...@apache.org>
AuthorDate: Wed Jul 30 08:22:39 2025 +0800

    Highlight `on` as GINQ keyword in groovySh
---
 subprojects/groovy-groovysh/src/main/resources/nanorc/groovy.nanorc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/subprojects/groovy-groovysh/src/main/resources/nanorc/groovy.nanorc 
b/subprojects/groovy-groovysh/src/main/resources/nanorc/groovy.nanorc
index f6d2bffe0f..0a14a35999 100644
--- a/subprojects/groovy-groovysh/src/main/resources/nanorc/groovy.nanorc
+++ b/subprojects/groovy-groovysh/src/main/resources/nanorc/groovy.nanorc
@@ -27,7 +27,7 @@ VARIABLE:    "@[A-Za-z]+"
 
 FUNCTION:    "\<(assert|print|println|sleep|as|in)\>"
 FUNCTION:    
"^\s*\<(from|where|select|join|innerjoin|leftjoin|rightjoin|fulljoin|crossjoin|groupby|orderby|limit)\>"
-FUNCTION:    
"^\s*\<(innerhashjoin|lefthashjoin|righthashjoin|fullhashjoin|exists|having|distinct)\>"
+FUNCTION:    
"^\s*\<(innerhashjoin|lefthashjoin|righthashjoin|fullhashjoin|exists|having|distinct|on)\>"
 FUNCTION:    "\<(over|partitionby|rows|range|asc|desc|nullsfirst|nullslast)\>"
 JUMP:        "\<(break|continue)\>"
 NULL:        "\<(null)\>"

Reply via email to