Function: lua-skip-ws-and-comments-backward

lua-skip-ws-and-comments-backward is an interactive and byte-compiled function defined in lua-mode.el.gz.

Signature

(lua-skip-ws-and-comments-backward &optional LIMIT)

Documentation

Move point back skipping all whitespace and comments.

If LIMIT is given, stop at it or before.

Return non-nil if moved point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-mode.el.gz
(defun lua-skip-ws-and-comments-backward (&optional limit)
  "Move point back skipping all whitespace and comments.

If LIMIT is given, stop at it or before.

Return non-nil if moved point."
  (interactive)
  (unless (lua-string-p)
    (let ((start-pos (point))
          (comment-start-pos (lua-comment-start-pos))
          (limit (min (point) (or limit (point-min)))))
      (when comment-start-pos (goto-char (max limit comment-start-pos)))
      (when (< limit (point)) (forward-comment (- limit (point))))
      (when (< (point) limit) (goto-char limit))
      (when (/= start-pos (point)) (point)))))