Function: js--broken-arrow-terminates-line-p

js--broken-arrow-terminates-line-p is a byte-compiled function defined in js.el.gz.

Signature

(js--broken-arrow-terminates-line-p)

Documentation

Helper function for js--proper-indentation.

Return non-nil if the last non-comment, non-whitespace token of the current line is the "=>" token (of an arrow function).

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/js.el.gz
(defun js--broken-arrow-terminates-line-p ()
  "Helper function for `js--proper-indentation'.
Return non-nil if the last non-comment, non-whitespace token of the
current line is the \"=>\" token (of an arrow function)."
  (let ((from (point)))
    (end-of-line)
    (re-search-backward js--line-terminating-arrow-re from t)))