Function: simula-find-inspect
simula-find-inspect is a byte-compiled function defined in
simula.el.gz.
Signature
(simula-find-inspect)
Documentation
Find INSPECT matching WHEN or OTHERWISE.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/simula.el.gz
(defun simula-find-inspect ()
"Find INSPECT matching WHEN or OTHERWISE."
(catch 'simula-out
(let ((level 0))
;;
;; INSPECTs can be nested, have to find the corresponding one
;;
(while t
(if (and (simula-search-backward "\\<inspect\\>\\|\\<otherwise\\>\\|;"
nil t)
(/= (following-char) ?\;))
(if (memq (following-char) '(?O ?o))
(setq level (1+ level))
(if (zerop level)
(throw 'simula-out t)
(setq level (1- level))))
(error "Missing INSPECT or misplaced ';' (can't find INSPECT)"))))))