Variable: python-font-lock-keywords-level-1

python-font-lock-keywords-level-1 is a variable defined in python.el.gz.

Value

(("\\_<def[[:space:]]+\\(\\(?:[[:word:]]\\|_\\)+\\)"
  (1 font-lock-function-name-face))
 ("\\_<class[[:space:]]+\\(\\(?:[[:word:]]\\|_\\)+\\)"
  (1 font-lock-type-face)))

Documentation

Font lock keywords to use in python-mode for level 1 decoration.

This is the minimum decoration level, including function and class declarations.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defvar python-font-lock-keywords-level-1
  `((,(rx symbol-start "def" (1+ space) (group (1+ (or word ?_))))
     (1 font-lock-function-name-face))
    (,(rx symbol-start "class" (1+ space) (group (1+ (or word ?_))))
     (1 font-lock-type-face)))
  "Font lock keywords to use in `python-mode' for level 1 decoration.

This is the minimum decoration level, including function and
class declarations.")