You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by bd...@apache.org on 2022/10/26 12:30:55 UTC

[directory-scimple] branch antlr-4111 created (now 7a8f28ec)

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

bdemers pushed a change to branch antlr-4111
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git


      at 7a8f28ec Update to ANTLR 4.11.1

This branch includes the following new commits:

     new 7a8f28ec Update to ANTLR 4.11.1

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[directory-scimple] 01/01: Update to ANTLR 4.11.1

Posted by bd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

bdemers pushed a commit to branch antlr-4111
in repository https://gitbox.apache.org/repos/asf/directory-scimple.git

commit 7a8f28ecd8c3d88c12626452351b14d39ef98ebe
Author: Brian Demers <bd...@apache.org>
AuthorDate: Wed Oct 26 14:30:43 2022 +0200

    Update to ANTLR 4.11.1
    
    Minor problem with the phoneNumber grammar and needed to add an `EOF`
    Related thread: https://groups.google.com/g/antlr-discussion/c/tA6HG-CtaJs
---
 pom.xml                                                                 | 2 +-
 .../org/apache/directory/scim/spec/phonenumber/PhoneNumberParser.g4     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index a376923a..26c72728 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,7 +42,7 @@
     <version.lombok.plugin>1.18.20.0</version.lombok.plugin>
     <version.restfuse>1.2.0</version.restfuse>
     <version.slf4j>1.7.36</version.slf4j>
-    <version.antlr4>4.5.3</version.antlr4>
+    <version.antlr4>4.11.1</version.antlr4>
     <version.resteasy>6.1.0.Final</version.resteasy>
 
     <!-- default surefire/failsafe arg lines to empty-->
diff --git a/scim-spec/scim-spec-schema/src/main/antlr4/org/apache/directory/scim/spec/phonenumber/PhoneNumberParser.g4 b/scim-spec/scim-spec-schema/src/main/antlr4/org/apache/directory/scim/spec/phonenumber/PhoneNumberParser.g4
index 9d3b5105..9dd0e8c8 100644
--- a/scim-spec/scim-spec-schema/src/main/antlr4/org/apache/directory/scim/spec/phonenumber/PhoneNumberParser.g4
+++ b/scim-spec/scim-spec-schema/src/main/antlr4/org/apache/directory/scim/spec/phonenumber/PhoneNumberParser.g4
@@ -21,7 +21,7 @@ parser grammar PhoneNumberParser;
 
 options {tokenVocab = PhoneNumberLexer;}
 
-phoneNumber: PrefixTel (global=globalNumber | local=localNumber);
+phoneNumber: PrefixTel (global=globalNumber | local=localNumber) EOF;
 
 globalNumber: globalDigits=Plus GlobalNumberDigits (SEMI (PrefixExt Ext | PrefixIsub Isub))? parameter*;