doc updates
This commit is contained in:
@@ -28,9 +28,9 @@
|
||||
|
||||
(defn doc::print (entry)
|
||||
(do (print (term-green (doc::strip-backticks (second entry))) "-" (third entry))
|
||||
; (print (last entry) "\n") ; doc section
|
||||
(if (> (string-len (fourth entry)) 2)
|
||||
(do (def examp (doc::strip-backticks (fourth entry)))
|
||||
(if (> (string-len (fourth entry)) 2) ; example
|
||||
(for example (string-regex-list (fourth entry) "(`.*?`)" "token")
|
||||
(def examp (doc::strip-backticks (first example)))
|
||||
(def pos (string-find examp "=>" 0))
|
||||
(if (and pos (> pos 0))
|
||||
(print (term-magenta
|
||||
|
||||
Reference in New Issue
Block a user