diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2022-04-30 15:38:44 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2022-06-06 13:26:09 +0200 |
commit | 2c5d18e421e6c06f4a969f98585ec41aae8eb2e4 (patch) | |
tree | 22e1473e0e73f5a4df5c184ac0ce71ecd4c93f8b /tests/keys | |
parent | 0c6123f8aa6236dcce1320cd190865324f3a5f94 (diff) | |
download | guix-2c5d18e421e6c06f4a969f98585ec41aae8eb2e4.tar.gz |
import: cabal: Support elif statement.
Fixes <https://issues.guix.gnu.org/54752>. * guix/import/cabal.scm (make-cabal-parser): Replace if-then-else grammar case with elif-else, modify if-then accordingly. (is-elif): New procedure. (lex-elif): Likewise. (is-id): Add elif keyword. (lex-word): Add test for elif. * tests/hackage.scm (test-cabal-if): New variale. (test-cabal-else): Likewise. (test-cabal-elif): Likewise. (test-cabal-elif-brackets): Likewise. (match-ghc-elif): Likewise. ("hackage->guix-package test lonely if statement", "hackage->guix-package test else statement", "hackage->guix-package test elif statement", "hackage->guix-package test elif statement with brackets"): New tests.
Diffstat (limited to 'tests/keys')
0 files changed, 0 insertions, 0 deletions