guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/25: import: opam: Accept tabulations.


From: guix-commits
Subject: 02/25: import: opam: Accept tabulations.
Date: Mon, 11 Apr 2022 06:18:50 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit be7338d4000dece2a4a4c19b414c71b7206799eb
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Fri Apr 8 15:22:42 2022 +0200

    import: opam: Accept tabulations.
    
    * guix/import/opam.scm (SP, SP2): Accept tabulation as whitespace.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 guix/import/opam.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/import/opam.scm b/guix/import/opam.scm
index f569c921b1..f51d17dea4 100644
--- a/guix/import/opam.scm
+++ b/guix/import/opam.scm
@@ -61,8 +61,8 @@
 
 ;; Define a PEG parser for the opam format
 (define-peg-pattern comment none (and "#" (* COMMCHR) "\n"))
-(define-peg-pattern SP none (or " " "\n" comment))
-(define-peg-pattern SP2 body (or " " "\n"))
+(define-peg-pattern SP none (or " " "\n" "\t" comment))
+(define-peg-pattern SP2 body (or " " "\n" "\t"))
 (define-peg-pattern QUOTE none "\"")
 (define-peg-pattern QUOTE2 body "\"")
 (define-peg-pattern COLON none ":")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]