Skip to content

Fixes scribble bug #25 (in scribble/lp2, chunk should use #:tag-prefix) #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions scribble-lib/scribble/private/lp.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(identifier? #'name)
(let* ([n (get-chunk-number (syntax-local-introduce #'name))]
[str (symbol->string (syntax-e #'name))]
[tag (format "~a:~a" str (or n 1))])
[tag (format "chunk:~a:~a" str (or n 1))])

(when n
(inc-chunk-number (syntax-local-introduce #'name)))
Expand Down Expand Up @@ -61,9 +61,9 @@
(make-splice
(list (make-toc-element
#f
(list (elemtag '(chunk tag)
(list (elemtag '(prefixable tag)
(bold (italic (racket name)) " ::=")))
(list (smaller (elemref '(chunk tag) #:underline? #f
(list (smaller (elemref '(prefixable tag) #:underline? #f
str
rest (... ...)))))
(racketblock expr (... ...)))))))])))
Expand All @@ -75,9 +75,9 @@
(syntax-case stx ()
[(_ id)
(identifier? #'id)
(with-syntax ([tag (format "~a:1" (syntax-e #'id))]
(with-syntax ([tag (format "chunk:~a:1" (syntax-e #'id))]
[str (format "~a" (syntax-e #'id))])
#'(elemref '(chunk tag) #:underline? #f str))]))
#'(elemref '(prefixable tag) #:underline? #f str))]))


(provide (all-from-out scheme/base
Expand Down