diff options
author | Julien Lepiller <julien@lepiller.eu> | 2021-07-05 16:06:22 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2021-07-05 16:54:05 +0200 |
commit | 45940f59aae10e257e10ed585c49a9383df62185 (patch) | |
tree | c9a332a58d0857eb644858b35201c12388663825 /guix/import | |
parent | 685cfdec94e5e48c4ad28de53466a28dfc258edb (diff) |
guix: opam: Allow for whitespace at the start of an opam file.
* guix/import/opam.scm (records): Accept whitespace at the beginning.
Diffstat (limited to 'guix/import')
-rw-r--r-- | guix/import/opam.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/import/opam.scm b/guix/import/opam.scm index 0201376457..a35b01d277 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) "-"))) |