aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/games.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/games.scm')
0 files changed, 0 insertions, 0 deletions
s/style.scm: Add test. 2022-01-10style: Allow special forms to be scoped.Ludovic Courtès * guix/scripts/style.scm (vhashq): Add clause for 'lst, and change default clause. (%special-forms): Add context for 'add-after and 'add-before. Add 'replace. (prefix?, special-form-lead): New procedures. (special-form?): Remove. (pretty-print-with-comments): Add 'context' to the threaded state. Adjust 'print-sequence' and adjust 'loop' calls accordingly. * tests/style.scm: Add tests for 'replace. 2022-01-10style: Improve pretty printer and add tests.Ludovic Courtès * guix/scripts/style.scm (vhashq): New macro. (%special-forms): New variable. (special-form?): New procedure. (pretty-print-with-comments): Add many clauses and tweak existing rules. * tests/style.scm (test-pretty-print): New macro. <top level>: Add 'test-pretty-print' tests. 2021-07-11Add 'guix style'.Ludovic Courtès * guix/scripts/style.scm, tests/style.scm: New files. * Makefile.am (MODULES, SCM_TESTS): Add them. * po/guix/POTFILES.in: Add 'guix/scripts/style.scm'. * doc/guix.texi (Invoking guix style): New node. (package Reference): Reference it. (Invoking guix lint): Likewise.