[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: guix: opam: Allow for whitespace at the start of an opam file.
From: |
guix-commits |
Subject: |
01/03: guix: opam: Allow for whitespace at the start of an opam file. |
Date: |
Mon, 5 Jul 2021 10:54:47 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 45940f59aae10e257e10ed585c49a9383df62185
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Mon Jul 5 16:06:22 2021 +0200
guix: opam: Allow for whitespace at the start of an opam file.
* guix/import/opam.scm (records): Accept whitespace at the beginning.
---
guix/import/opam.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/import/opam.scm b/guix/import/opam.scm
index 0201376..a35b01d 100644
--- a/guix/import/opam.scm
+++ b/guix/import/opam.scm
@@ -66,7 +66,7 @@
(range #\# #\頋)))
(define-peg-pattern operator all (or "=" "!" "<" ">"))
-(define-peg-pattern records body (* (and (or record weird-record) (* SP))))
+(define-peg-pattern records body (and (* SP) (* (and (or record weird-record)
(* SP)))))
(define-peg-pattern record all (and key COLON (* SP) value))
(define-peg-pattern weird-record all (and key (* SP) dict))
(define-peg-pattern key body (+ (or (range #\a #\z) "-")))