Function: web-mode-part-is-token-line

web-mode-part-is-token-line is a natively compiled function defined in web-mode.el.

Signature

(web-mode-part-is-token-line POS)

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-part-is-token-line (pos)
  (save-excursion
    (let ((continue t)
          (counter 0))
      (goto-char pos)
      (setq continue (not (eolp)))
      (while continue
        (forward-char)
        (cond
          ((eolp)
           (setq continue nil))
          ((or (get-text-property (point) 'block-side)
               (member (get-text-property (point) 'part-token) '(comment string)))
           (setq counter (1+ counter)))
          ((not (member (following-char) '(?\s ?\t)))
           (setq continue nil
                 counter 0))
          )
        ) ;while
      (> counter 0))))