Function: lua-skip-ws-and-comments-forward
lua-skip-ws-and-comments-forward is an interactive and byte-compiled
function defined in lua-mode.el.gz.
Signature
(lua-skip-ws-and-comments-forward &optional LIMIT)
Documentation
Move point forward 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-forward (&optional limit)
"Move point forward 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 (max (point) (or limit (point-max)))))
;; Escape from current comment. It is necessary to use "while"
;; because luadoc parameters have non-comment face, and
;; parse-partial-sexp with 'syntax-table flag will stop on them.
(when comment-start-pos
(goto-char comment-start-pos)
(forward-comment 1))
(when (< (point) limit) (forward-comment (- limit (point))))
(when (< limit (point)) (goto-char limit))
(when (/= start-pos (point)) (point)))))