mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-13 16:07:35 +02:00
Recognize analyzed proc docs in .sld files.
This commit is contained in:
parent
31ba067d62
commit
fe07176a8a
1 changed files with 6 additions and 3 deletions
|
@ -821,8 +821,11 @@ div#footer {padding-bottom: 50px}
|
|||
(id (form-defined-name form))
|
||||
(line (port-line in))
|
||||
;; find all procedures defined by form
|
||||
(procs (filter (lambda (x) (<= last-line (third x) line))
|
||||
(filter third defs)))
|
||||
(procs2 (filter (lambda (x) (<= last-line (third x) line))
|
||||
(filter third defs)))
|
||||
(procs (if (= 2 (length procs2))
|
||||
(cdr procs2)
|
||||
procs2))
|
||||
;; the the signature for the form
|
||||
(sigs
|
||||
(cond
|
||||
|
@ -846,7 +849,7 @@ div#footer {padding-bottom: 50px}
|
|||
((and (eq? lang 'ffi) (pair? sigs))
|
||||
(lp '() '() (append (insert-signature cur #f sigs) res)
|
||||
ids depth line))
|
||||
((and (eq? lang 'scheme) (= 1 (length procs)))
|
||||
((and (memq lang '(scheme module)) (= 1 (length procs)))
|
||||
(lp '() '()
|
||||
(append (insert-signature cur (caar procs) sigs) res)
|
||||
ids depth line))
|
||||
|
|
Loading…
Add table
Reference in a new issue