Function: wisent-python-forward-string
wisent-python-forward-string is a byte-compiled function defined in
python.el.gz.
Signature
(wisent-python-forward-string)
Documentation
Move point at the end of the Python string at point.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/wisent/python.el.gz
(defsubst wisent-python-forward-string ()
"Move point at the end of the Python string at point."
(if (looking-at wisent-python-string-re)
(let ((start (match-beginning 0))
(end (match-end 0)))
;; Incomplete triple-quoted string gets matched instead as a
;; complete single quoted string. (This special case would be
;; unnecessary if Emacs regular expressions had negative
;; look-ahead assertions.)
(when (and (= (- end start) 2)
(looking-at "\"\\{3\\}\\|'\\{3\\}"))
(error "Unterminated syntax"))
(goto-char end))
(error "Unterminated syntax")))