You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/02/01 00:02:48 UTC
[groovy] 02/08: Add comment for `classOrInterfaceModifiersOpt`
This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch GROOVY_3_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 4ca22b5ed46078dc767b794ca2d990bebfcd8153
Author: Daniel Sun <su...@apache.org>
AuthorDate: Thu Jan 30 23:34:34 2020 +0800
Add comment for `classOrInterfaceModifiersOpt`
(cherry picked from commit b5f58bcb07b0d06169f82716dc8f1d12fd158b1e)
---
src/antlr/GroovyParser.g4 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/antlr/GroovyParser.g4 b/src/antlr/GroovyParser.g4
index 01dee0a..9c6602a 100644
--- a/src/antlr/GroovyParser.g4
+++ b/src/antlr/GroovyParser.g4
@@ -144,7 +144,9 @@ modifiers
;
classOrInterfaceModifiersOpt
- : (classOrInterfaceModifiers NL*)?
+ : (classOrInterfaceModifiers
+ NL* /* Use `NL*` here for better performance, so DON'T replace it with `nls` */
+ )?
;
classOrInterfaceModifiers