import: opam: Parse comments.
* guix/import/opam.scm: Add comment support in parser.
This commit is contained in:
parent
8737666a99
commit
f31ce9ecf1
|
@ -42,7 +42,8 @@
|
|||
%opam-updater))
|
||||
|
||||
;; Define a PEG parser for the opam format
|
||||
(define-peg-pattern SP none (or " " "\n"))
|
||||
(define-peg-pattern comment none (and "#" (* STRCHR) "\n"))
|
||||
(define-peg-pattern SP none (or " " "\n" comment))
|
||||
(define-peg-pattern SP2 body (or " " "\n"))
|
||||
(define-peg-pattern QUOTE none "\"")
|
||||
(define-peg-pattern QUOTE2 body "\"")
|
||||
|
|
Loading…
Reference in New Issue