mirror of
https://github.com/janet-lang/janet
synced 2025-01-10 23:50:26 +00:00
Fix comment macro arity #110
This commit is contained in:
parent
4c8dd4b96c
commit
698e89aba4
@ -136,7 +136,7 @@
|
||||
|
||||
(defmacro comment
|
||||
"Ignores the body of the comment."
|
||||
[])
|
||||
[&])
|
||||
|
||||
(defmacro if-not
|
||||
"Shorthand for (if (not condition) else then)."
|
||||
|
@ -103,4 +103,10 @@
|
||||
(assert (= (+ ;(range 6)) (myfn 0 1 2 :a 3 :b 4 :c 5)) "keyword args 1")
|
||||
(assert (= (+ ;(range 6)) (myfn 0 1 2 :a 1 :b 6 :c 5 :d 11)) "keyword args 2")
|
||||
|
||||
# Comment macro
|
||||
(comment 1)
|
||||
(comment 1 2)
|
||||
(comment 1 2 3)
|
||||
(comment 1 2 3 4)
|
||||
|
||||
(end-suite)
|
||||
|
Loading…
Reference in New Issue
Block a user