mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
Remove code delimtiers from defn and defmacro.
This commit is contained in:
parent
c911f7c47e
commit
84f82f5465
@ -33,12 +33,12 @@
|
||||
# Add function signature to docstring
|
||||
(var index 0)
|
||||
(def arglen (length args))
|
||||
(def buf (buffer "`(" name))
|
||||
(def buf (buffer "(" name))
|
||||
(while (< index arglen)
|
||||
(buffer/push-string buf " ")
|
||||
(buffer/format buf "%j" (in args index))
|
||||
(set index (+ index 1)))
|
||||
(array/push modifiers (string buf ")`\n\n" docstr))
|
||||
(array/push modifiers (string buf ")\n\n" docstr))
|
||||
# Build return value
|
||||
~(def ,name ,;modifiers (fn ,name ,;(tuple/slice more start)))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user