Function: whitespace--indentation-matcher

whitespace--indentation-matcher is a byte-compiled function defined in whitespace.el.gz.

Signature

(whitespace--indentation-matcher LIMIT)

Documentation

Indentation matcher for font-lock-keywords.

This matcher is a function instead of a static regular expression so that the next call to font-lock-flush picks up any changes to indent-tabs-mode(var)/indent-tabs-mode(fun) and tab-width.

Source Code

;; Defined in /usr/src/emacs/lisp/whitespace.el.gz
(defun whitespace--indentation-matcher (limit)
  "Indentation matcher for `font-lock-keywords'.
This matcher is a function instead of a static regular expression
so that the next call to `font-lock-flush' picks up any changes
to `indent-tabs-mode' and `tab-width'."
  (re-search-forward
   (whitespace-indentation-regexp
    (cond
     ((memq 'indentation whitespace-active-style) nil)
     ((memq 'indentation::tab whitespace-active-style) 'tab)
     ((memq 'indentation::space whitespace-active-style) 'space)))
   limit t))