• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/emacs-93/emacs/lisp/progmodes/

Lines Matching defs:font

73 ;; Also, `font-lock-mode' or `global-font-lock-mode' must be enabled.
114 (require 'font-lock)
144 See variable `cwarn-font-lock-feature-keywords-alist' for available
149 (defcustom cwarn-font-lock-feature-keywords-alist
150 '((assign . cwarn-font-lock-assignment-keywords)
151 (semicolon . cwarn-font-lock-semicolon-keywords)
152 (reference . cwarn-font-lock-reference-keywords))
153 "An alist mapping a CWarn feature to font-lock keywords.
154 The keywords could either a font-lock keyword list or a symbol.
155 If it is a symbol it is assumed to be a variable containing a font-lock
198 (cwarn-font-lock-keywords cwarn-mode)
199 (if font-lock-mode (font-lock-fontify-buffer)))
219 `cwarn-font-lock-feature-keywords-alist'."
238 (defun cwarn-font-lock-keywords (addp)
241 (dolist (pair cwarn-font-lock-feature-keywords-alist)
247 (funcall (if addp 'font-lock-add-keywords 'font-lock-remove-keywords)
276 ;; This section contains font-lock keywords. A font lock keyword can
284 ;; should correspond to the highlight part of the font-lock keyword.
285 ;; The functions should not generate errors, in that case font-lock
289 ;; The variable `cwarn-font-lock-feature-keywords-alist' contains a
290 ;; mapping from CWarn features to the font-lock keywords defined
293 (defmacro cwarn-font-lock-match (re &rest body)
310 (defconst cwarn-font-lock-assignment-keywords
311 '((cwarn-font-lock-match-assignment-in-expression
312 (1 font-lock-warning-face))))
314 (defun cwarn-font-lock-match-assignment-in-expression (limit)
316 (cwarn-font-lock-match
331 (defconst cwarn-font-lock-semicolon-keywords
332 '((cwarn-font-lock-match-dangerous-semicolon (0 font-lock-warning-face))))
334 (defun cwarn-font-lock-match-dangerous-semicolon (limit)
337 (cwarn-font-lock-match
351 (defconst cwarn-font-lock-reference-keywords
352 '((cwarn-font-lock-match-reference (1 font-lock-warning-face))))
354 (defun cwarn-font-lock-match-reference (limit)
356 (cwarn-font-lock-match