Variable: neocaml--doc-comment-regexp
neocaml--doc-comment-regexp is a variable defined in neocaml.el.
Value
"^(\\*\\*[^*]"
Documentation
Regexp matching the text of a doc comment node ((** ...).
The [^*] excludes (*** separator comments.
Source Code
;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
;;;; Ocamldoc markup rendering
;;
;; Doc comments ((** ... *)) are written in the ocamldoc markup
;; language: {b bold}, {i italic}, [inline code], {[ code blocks ]},
;; {!references}, @tags, and so on. The comment text is opaque to the
;; parse tree, so the `doc-markup' font-lock feature scans doc comment
;; nodes with regular expressions and renders the markup with real
;; faces (bold, italic, a code face), layered on top of
;; `font-lock-doc-face' so the markup reads in place instead of as
;; punctuation soup. Disable by removing `doc-markup' from
;; `treesit-font-lock-feature-list'.
;;
;; Longer term this could be replaced by injecting the tree-sitter odoc
;; grammar into doc comments (the way `js-ts-mode' injects jsdoc); the
;; scanner keeps the feature working without an extra grammar.
(defconst neocaml--doc-comment-regexp "^(\\*\\*[^*]"
"Regexp matching the text of a doc comment node ((** ...).
The [^*] excludes (*** separator comments.")