guix-commits
[Top][All Lists]
Advanced

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

02/07: doc: Syntax highlighting now handles @var within @lisp.


From: guix-commits
Subject: 02/07: doc: Syntax highlighting now handles @var within @lisp.
Date: Fri, 4 Sep 2020 05:30:07 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit fe409700d85a8de0fadb9cdd052434a4e07b4267
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Sep 4 10:32:04 2020 +0200

    doc: Syntax highlighting now handles @var within @lisp.
    
    * doc/build.scm (syntax-highlighted-html)[build](concatenate-pieces):
    Handle @var{name}.
---
 doc/build.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/doc/build.scm b/doc/build.scm
index 7256fb9..97f4ab6 100644
--- a/doc/build.scm
+++ b/doc/build.scm
@@ -310,6 +310,8 @@ its <pre class=\"lisp\"> blocks (as produced by 'makeinfo 
--html')."
                    (loop rest (cons (entity->string entity) strings)))
                   ((('span _ lst ...) . rest)     ;for <span class="roman">
                    (loop (append lst rest) strings))
+                  ((('var name) . rest)           ;for @var{name} within @lisp
+                   (loop rest (cons name strings))) ;XXX: losing formatting
                   (something
                    (pk 'unsupported-code-snippet something)
                    (primitive-exit 1)))))



reply via email to

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