Function: sqlind-forward-syntactic-ws
sqlind-forward-syntactic-ws is a natively compiled function defined in
sql-indent.el.
Signature
(sqlind-forward-syntactic-ws)
Documentation
Move point forward over whitespace and comments.
Leave point at the first character which is not syntactic whitespace, or at the end of the buffer.
Source Code
;; Defined in /nix/store/jxjf2h9nnkdqnn1w1mr0ag8bqng2rlrs-emacs-packages-deps/share/emacs/site-lisp/elpa/sql-indent-1.7/sql-indent.el
(defun sqlind-forward-syntactic-ws ()
"Move point forward over whitespace and comments.
Leave point at the first character which is not syntactic
whitespace, or at the end of the buffer."
;; if we are inside a comment, move to the comment start and scan
;; from there.
(let ((pps (syntax-ppss (point))))
(when (nth 4 pps)
(goto-char (nth 8 pps))))
(let ((done nil))
(while (not done)
(skip-chars-forward " \t\n\r\f\v")
(cond ((looking-at sqlind-comment-start-skip) (forward-comment 1))
;; a slash ("/") by itself is a SQL*plus directive and
;; counts as whitespace
((looking-at "/\\s *$") (goto-char (match-end 0)))
(t (setq done t)))))
(point))