diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-03-16 23:35:07 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-03-18 22:35:36 +0100 |
commit | e914b398af11f909e88a8bc85eeebb0768aacd54 (patch) | |
tree | 2e03d03eddd9e35bd34bce36768c2fad19c112e7 /tests/scripts.scm | |
parent | 675e81a082b47aec7b3c2caa950953edb7c01c1e (diff) | |
download | patches-e914b398af11f909e88a8bc85eeebb0768aacd54.tar patches-e914b398af11f909e88a8bc85eeebb0768aacd54.tar.gz |
glob: Support square brackets in patterns.
* guix/glob.scm (wildcard-indices): Remove.
(parse-bracket): New procedure.
(compile-glob-pattern): Rewrite. Support square brackets for sets and
ranges.
(glob-match?): Support sets and ranges.
* tests/glob.scm (test-compile-glob-pattern)
(test-glob-match): New macros.
Use them to rewrite the existing tests, and add new tests.
Diffstat (limited to 'tests/scripts.scm')
0 files changed, 0 insertions, 0 deletions