Function: python-info-line-ends-backslash-p

python-info-line-ends-backslash-p is a byte-compiled function defined in python.el.gz.

Signature

(python-info-line-ends-backslash-p &optional LINE-NUMBER)

Documentation

Return non-nil if current line ends with backslash.

With optional argument LINE-NUMBER, check that line instead.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-info-line-ends-backslash-p (&optional line-number)
  "Return non-nil if current line ends with backslash.
With optional argument LINE-NUMBER, check that line instead."
  (save-excursion
      (when line-number
        (python-util-goto-line line-number))
      (while (and (not (eobp))
                  (goto-char (line-end-position))
                  (python-syntax-context 'paren)
                  (not (equal (char-before (point)) ?\\)))
        (forward-line 1))
      (when (equal (char-before) ?\\)
        (point-marker))))