syntax | since v0.0-1853 | in clojure | in edn | Edit |
A single line comment.
; this is a comment
;; two semicolons is also common
"Comments out" everything after ;
on the current line.
Add comments to code:
(def a 1) ; this is a comment
It is common to use ;;
for comments that have their own line:
;; this comment is on its own line
(defn read-comment
[rdr & _]
(skip-line rdr))
(defn- macros [ch]
(case ch
\" read-string*
\: read-keyword
\; read-comment
\' (wrapping-reader 'quote)
\@ (wrapping-reader 'clojure.core/deref)
\^ read-meta
\` read-syntax-quote ;;(wrapping-reader 'syntax-quote)
\~ read-unquote
\( read-list
\) read-unmatched-delimiter
\[ read-vector
\] read-unmatched-delimiter
\{ read-map
\} read-unmatched-delimiter
\\ read-char*
\% read-arg
\# read-dispatch
nil))