mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Auto-generate some documentation
This commit is contained in:
parent
117d0111ab
commit
13437dd19b
97 changed files with 2033 additions and 661 deletions
|
@ -43,6 +43,27 @@
|
|||
"\\)*>")
|
||||
0 ,c-doc-markup-face-name prepend nil)))
|
||||
|
||||
;; (defconst javadown-font-lock-doc-comments
|
||||
;; `(("{@[a-z]+[^}\n\r]*}" ; "{@foo ...}" markup.
|
||||
;; 0 ,c-doc-markup-face-name prepend nil)
|
||||
;; ("^\\(/\\*\\)?\\(\\s \\|\\*\\)*\\(@[a-z]+\\)" ; "@foo ..." markup.
|
||||
;; 3 ,c-doc-markup-face-name prepend nil)
|
||||
;; (,(concat "</?\\sw" ; HTML tags.
|
||||
;; "\\("
|
||||
;; (concat "\\sw\\|\\s \\|[=\n\r*.:]\\|"
|
||||
;; "\"[^\"]*\"\\|'[^']*'")
|
||||
;; "\\)*>")
|
||||
;; 0 ,c-doc-markup-face-name prepend nil)
|
||||
;; ;; ("&\\(\\sw\\|[.:]\\)+;" ; HTML entities.
|
||||
;; ;; 0 ,c-doc-markup-face-name prepend nil)
|
||||
;; ;; Fontify remaining markup characters as invalid. Note
|
||||
;; ;; that the Javadoc spec is hazy about when "@" is
|
||||
;; ;; allowed in non-markup use. [jart: we like markdown]
|
||||
;; ;; (,(lambda (limit)
|
||||
;; ;; (c-find-invalid-doc-markup "[<>&]\\|{@" limit))
|
||||
;; ;; 0 'font-lock-warning-face prepend nil)
|
||||
;; ))
|
||||
|
||||
(defconst javadown-font-lock-keywords
|
||||
`((,(lambda (limit)
|
||||
(c-font-lock-doc-comments "/\\*\\*" limit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue