Function: vera-corresponding-if

vera-corresponding-if is a byte-compiled function defined in vera-mode.el.gz.

Signature

(vera-corresponding-if)

Documentation

Find corresponding if if cursor is at else.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/vera-mode.el.gz
(defun vera-corresponding-if ()
  "Find corresponding `if' if cursor is at `else'."
  (while (and (vera-re-search-backward "}\\|\\<\\(if\\|else\\)\\>" nil t)
	      (not (equal (match-string 0) "if")))
    (if (equal (match-string 0) "else")
	(vera-corresponding-if)
      (forward-char)
      (backward-sexp))))