Function: hywiki-maybe-highlight-off-reference

hywiki-maybe-highlight-off-reference is a byte-compiled function defined in hywiki.el.

Signature

(hywiki-maybe-highlight-off-reference)

Documentation

Highlight any non-Org link HyWiki page#section at or one char before point.

If at bobp or any preceding char is non-whitespace and any following character is whitespace or at eobp, handle highlighting for any previous word or punctuation.

If in a programming mode, must be within a comment. Use hywiki-word-face to highlight. Do not highlight references to the current page unless they have sections attached.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hywiki.el
(defun hywiki-maybe-highlight-off-reference ()
  "Highlight any non-Org link HyWiki page#section at or one char before point.
If at bobp or any preceding char is non-whitespace and any following
character is whitespace or at eobp, handle highlighting for any previous
word or punctuation.

If in a programming mode, must be within a comment.  Use
`hywiki-word-face' to highlight.  Do not highlight references to
the current page unless they have sections attached."
  (hywiki-maybe-highlight-reference
   ;; flag on-reference if on a whitespace character
   (and (or (= (point) (point-max))
	    (= (if (char-after) (char-syntax (char-after)) 0) ?\ ))
	(or (= (point) (point-min))
	    (/= (if (char-before) (char-syntax (char-before)) 0) ?\ )))))