[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/26: guix: maven: Fix java parser.
From: |
guix-commits |
Subject: |
22/26: guix: maven: Fix java parser. |
Date: |
Sat, 5 Feb 2022 14:18:59 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit fb1a9c11e5ec928704c98dd633301bbdd7f3e8f4
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Tue Dec 21 02:52:34 2021 +0100
guix: maven: Fix java parser.
* guix/build/maven/java.scm (comment, comment-chr): Support more comment
styles.
---
guix/build/maven/java.scm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/guix/build/maven/java.scm b/guix/build/maven/java.scm
index daa4c88045..f8c8e5745d 100644
--- a/guix/build/maven/java.scm
+++ b/guix/build/maven/java.scm
@@ -31,11 +31,14 @@
(? (and (ignore "static") (* WS)))
package-name
(* WS) (ignore ";")))
-(define-peg-pattern comment all (and (? (and annotation-pat (* WS))) (ignore
"/*")
- comment-part))
+(define-peg-pattern comment all (or
+ (and (? (and annotation-pat (* WS))) (ignore
"/*")
+ comment-part)
+ (and (ignore "//") (* (or "\t" (range #\
#\xffff)))
+ (or (ignore "\n") (ignore "\r")) (*
WS))))
(define-peg-pattern comment-part body (or (ignore (and (* "*") "/"))
(and (* "*") (+ comment-chr)
comment-part)))
-(define-peg-pattern comment-chr body (or "\t" "\n" (range #\ #\)) (range #\+
#\xffff)))
+(define-peg-pattern comment-chr body (or "\t" "\n" "\r" (range #\ #\)) (range
#\+ #\xffff)))
(define-peg-pattern inline-comment none (and (ignore "//") (*
inline-comment-chr)
(ignore "\n")))
(define-peg-pattern inline-comment-chr body (range #\ #\xffff))
- 10/26: gnu: java-plexus-sec-dispatcher: Update to 2.0., (continued)
- 10/26: gnu: java-plexus-sec-dispatcher: Update to 2.0., guix-commits, 2022/02/05
- 20/26: gnu: Add java-sonatype-aether-util-1.13., guix-commits, 2022/02/05
- 04/26: gnu: Add maven-parent-pom-34., guix-commits, 2022/02/05
- 05/26: gnu: maven-parent-pom: Fix dependency versions., guix-commits, 2022/02/05
- 23/26: gnu: maven-enforcer-api: Update to 3.0.0., guix-commits, 2022/02/05
- 24/26: gnu: maven-wagon-provider-api: Update to 3.4.3., guix-commits, 2022/02/05
- 02/26: gnu: Add apache-commons-parent-pom-52., guix-commits, 2022/02/05
- 17/26: gnu: Add java-sonatype-aether-api-1.13., guix-commits, 2022/02/05
- 19/26: gnu: Add java-sonatype-aether-test-util-1.13., guix-commits, 2022/02/05
- 21/26: gnu: maven-dependency-tree: Update to 3.1.0., guix-commits, 2022/02/05
- 22/26: guix: maven: Fix java parser.,
guix-commits <=
- 14/26: gnu: java-eclipse-sisu-plexus: Update to 0.3.5., guix-commits, 2022/02/05
- 07/26: gnu: java-plexus-utils: Default to the newer one., guix-commits, 2022/02/05
- 09/26: gnu: java-plexus-cipher: Update to 2.0., guix-commits, 2022/02/05
- 11/26: gnu: Add java-jvnet-parent-pom-3., guix-commits, 2022/02/05
- 25/26: gnu: Update maven-artifact-transfer to 0.13.1., guix-commits, 2022/02/05
- 18/26: gnu: Add java-sonatype-aether-spi-1.13., guix-commits, 2022/02/05
- 26/26: gnu: maven: Update to 3.8.4., guix-commits, 2022/02/05