Lines Matching defs:keywords
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.
198 (cwarn-font-lock-keywords cwarn-mode)
219 `cwarn-font-lock-feature-keywords-alist'."
238 (defun cwarn-font-lock-keywords (addp)
239 "Install/Remove keywords into current buffer.
241 (dolist (pair cwarn-font-lock-feature-keywords-alist)
243 (keywords (cdr pair)))
244 (if (not (listp keywords))
245 (setq keywords (symbol-value keywords)))
247 (funcall (if addp 'font-lock-add-keywords 'font-lock-remove-keywords)
248 nil keywords)))))
274 ;;{{{ Font-lock keywords and match functions
276 ;; This section contains font-lock keywords. A font lock keyword can
278 ;; keywords defined here use match functions since the C and C++
289 ;; The variable `cwarn-font-lock-feature-keywords-alist' contains a
290 ;; mapping from CWarn features to the font-lock keywords defined
310 (defconst cwarn-font-lock-assignment-keywords
331 (defconst cwarn-font-lock-semicolon-keywords
351 (defconst cwarn-font-lock-reference-keywords