Function: eglot--semtok-font-lock

eglot--semtok-font-lock is a byte-compiled function defined in eglot.el.gz.

Signature

(eglot--semtok-font-lock LIMIT)

Documentation

Arrange for font-lock to happen from point until LIMIT.

Either do it immediately if the information available is up-to-date or request new information from the server and return and hope the font lock machinery calls us again.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(cl-defun eglot--semtok-font-lock (limit &aux (beg (point)) (end limit))
  "Arrange for font-lock to happen from point until LIMIT.
Either do it immediately if the information available is up-to-date or
request new information from the server and return and hope the font
lock machinery calls us again."
  (cl-macrolet ((c (tag) `(plist-get eglot--semtok-state ,tag)))
    (cond ((and (eq (c :docver) eglot--docver)
                (c :dispatched)
                (c :data))
           (eglot--semtok-font-lock-1 beg end (c :data)))
          (t
           (eglot--semtok-font-lock-2 beg end)
           (eglot--semtok-request beg end))))
  nil)