Function: semantic-next-unmatched-syntax
semantic-next-unmatched-syntax is a byte-compiled function defined in
util-modes.el.gz.
Signature
(semantic-next-unmatched-syntax POINT &optional BOUND)
Documentation
Find the next overlay for unmatched syntax after POINT.
Do not search past BOUND if non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/util-modes.el.gz
(defun semantic-next-unmatched-syntax (point &optional bound)
"Find the next overlay for unmatched syntax after POINT.
Do not search past BOUND if non-nil."
(save-excursion
(goto-char point)
(let ((os point) (ol nil))
(while (and os (< os (or bound (point-max))) (not ol))
(setq os (next-overlay-change os))
(when os
;; Get overlays at position
(setq ol (overlays-at os))
;; find the overlay that belongs to semantic
;; and starts at the found position.
(while (and ol (listp ol))
(and (semantic-unmatched-syntax-overlay-p (car ol))
(setq ol (car ol)))
(if (listp ol)
(setq ol (cdr ol))))))
ol)))