diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 7754dc6c87c..9fe57beec30 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -110,7 +110,8 @@ | |||
| 110 | (,(rx symbol-start (group "def") (1+ space) (group (1+ (or word ?_)))) | 110 | (,(rx symbol-start (group "def") (1+ space) (group (1+ (or word ?_)))) |
| 111 | (1 font-lock-keyword-face) (2 font-lock-function-name-face)) | 111 | (1 font-lock-keyword-face) (2 font-lock-function-name-face)) |
| 112 | ;; Top-level assignments are worth highlighting. | 112 | ;; Top-level assignments are worth highlighting. |
| 113 | (,(rx line-start (group (1+ (or word ?_))) (0+ space) "=") | 113 | (,(rx line-start (group (1+ (or word ?_))) (0+ space) |
| 114 | (opt (or "+" "-" "*" "**" "/" "//" "&" "%" "|" "^" "<<" ">>")) "=") | ||
| 114 | (1 font-lock-variable-name-face)) | 115 | (1 font-lock-variable-name-face)) |
| 115 | ;; Decorators. | 116 | ;; Decorators. |
| 116 | (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_)) | 117 | (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_)) |