Function: web-mode-forward-sexp

web-mode-forward-sexp is an interactive and natively compiled function defined in web-mode.el.

Signature

(web-mode-forward-sexp N)

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
        ))) ;let if defun

(defun web-mode-forward-sexp (n)
  (interactive "p")
  (if (< n 0) (web-mode-backward-sexp (- n))
      (let (pos)
        (dotimes (_ n)
          (skip-chars-forward "[:space:]")
          (setq pos (point))
          (cond
            ((eobp) nil)
            ((get-text-property pos 'block-beg)
             (web-mode-block-end))
            ((get-text-property pos 'block-token)
             (web-mode-block-token-end))
            ((get-text-property pos 'part-token)
             (web-mode-part-token-end))
            ((get-text-property pos 'tag-beg)
             (web-mode-element-end))
            ((get-text-property pos 'tag-attr)
             (web-mode-attribute-end))
            ((get-text-property pos 'tag-type)
             (web-mode-tag-end))
            ((get-text-property pos 'jsx-beg)
             (web-mode-jsx-end))
            (t
             (let ((forward-sexp-function nil))
               (forward-sexp))
             ) ;case t
            ) ;cond
          ) ;dotimes
        ))) ;let if defun