Function: smie-indent-forward-token
smie-indent-forward-token is a byte-compiled function defined in
smie.el.gz.
Signature
(smie-indent-forward-token)
Documentation
Skip token forward and return it, along with its levels.
Point should be between tokens when calling this function (i.e., not in the middle of a string/comment).
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-indent-forward-token ()
"Skip token forward and return it, along with its levels.
Point should be between tokens when calling this function (i.e.,
not in the middle of a string/comment)."
(let ((tok (funcall smie-forward-token-function)))
(cond
((< 0 (length tok)) (assoc tok smie-grammar))
((looking-at "\\s(\\|\\s)\\(\\)")
(forward-char 1)
(cons (buffer-substring-no-properties (1- (point)) (point))
(if (match-end 1) '(0 nil) '(nil 0))))
((looking-at "\\s\"\\|\\s|")
(forward-sexp 1)
nil)
((eobp) nil)
(t (error "Bumped into unknown token: %S" tok)))))