Function: neocaml--doc-markup-fontify-span

neocaml--doc-markup-fontify-span is a natively compiled function defined in neocaml.el.

Signature

(neocaml--doc-markup-fontify-span OPEN OPEN-END CLOSE-BEG CLOSE-END CONTENT-FACE OVERRIDE)

Documentation

Fontify one markup construct.

OPEN..OPEN-END is the opening delimiter and CLOSE-BEG..CLOSE-END the closing one; both get neocaml-doc-markup-face. The content between them gets CONTENT-FACE, when non-nil. OVERRIDE is the override flag from treesit-font-lock-rules.

Source Code

;; Defined in /nix/store/ahssdx4rwzyxhyhavpn0bkznk13xrggi-emacs-packages-deps/share/emacs/site-lisp/elpa/neocaml-20260907.2015/neocaml.el
(defun neocaml--doc-markup-fontify-span (open open-end close-beg close-end
                                              content-face override)
  "Fontify one markup construct.
OPEN..OPEN-END is the opening delimiter and CLOSE-BEG..CLOSE-END the
closing one; both get `neocaml-doc-markup-face'.  The content between
them gets CONTENT-FACE, when non-nil.  OVERRIDE is the override flag
from `treesit-font-lock-rules'."
  (treesit-fontify-with-override
   open open-end 'neocaml-doc-markup-face override)
  (when content-face
    (treesit-fontify-with-override open-end close-beg content-face override))
  (treesit-fontify-with-override
   close-beg close-end 'neocaml-doc-markup-face override))