diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0fe1aa97cd0..9c5c71db882 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -360,7 +360,7 @@ | |||
| 360 | 360 | ||
| 361 | ;;; Python specialized rx | 361 | ;;; Python specialized rx |
| 362 | 362 | ||
| 363 | (eval-when-compile | 363 | (eval-and-compile |
| 364 | (defconst python-rx-constituents | 364 | (defconst python-rx-constituents |
| 365 | `((block-start . ,(rx symbol-start | 365 | `((block-start . ,(rx symbol-start |
| 366 | (or "def" "class" "if" "elif" "else" "try" | 366 | (or "def" "class" "if" "elif" "else" "try" |
| @@ -431,7 +431,7 @@ This variant of `rx' supports common Python named REGEXPS." | |||
| 431 | 431 | ||
| 432 | ;;; Font-lock and syntax | 432 | ;;; Font-lock and syntax |
| 433 | 433 | ||
| 434 | (eval-when-compile | 434 | (eval-and-compile |
| 435 | (defun python-syntax--context-compiler-macro (form type &optional syntax-ppss) | 435 | (defun python-syntax--context-compiler-macro (form type &optional syntax-ppss) |
| 436 | (pcase type | 436 | (pcase type |
| 437 | (`'comment | 437 | (`'comment |