Function: semantic-show-unmatched-syntax

semantic-show-unmatched-syntax is a byte-compiled function defined in util-modes.el.gz.

Signature

(semantic-show-unmatched-syntax SYNTAX)

Documentation

Function set into semantic-unmatched-syntax-hook.

This will highlight elements in SYNTAX as unmatched syntax.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/semantic/util-modes.el.gz
(defun semantic-show-unmatched-syntax (syntax)
  "Function set into `semantic-unmatched-syntax-hook'.
This will highlight elements in SYNTAX as unmatched syntax."
  ;; This is called when `semantic-show-unmatched-syntax-mode' is
  ;; enabled.  Highlight the unmatched syntax, and then add a semantic
  ;; property to that overlay so we can add it to the official list of
  ;; semantic supported overlays.  This gets it cleaned up for errors,
  ;; buffer cleaning, and the like.
  (semantic-clean-unmatched-syntax-in-buffer) ;Clear previous highlighting
  (if syntax
      (let (o)
        (while syntax
          (setq o (make-overlay (semantic-lex-token-start (car syntax))
                                (semantic-lex-token-end (car syntax))))
          (overlay-put o 'semantic 'unmatched)
          (overlay-put o 'face 'semantic-unmatched-syntax-face)
          (setq syntax (cdr syntax))))
    ))