* lisp/progmodes/python.el (python--font-lock-f-strings):
Temporarily bind forward-sexp-function to nil when calling
'up-list'. (Bug#74738)
(cherry picked from commit
3c247f86b7639995c8ce2627049bcc91452d2cca)
(forward-char 1) ;Just skip over {{
(let ((beg (match-beginning 0))
(end (condition-case nil
(forward-char 1) ;Just skip over {{
(let ((beg (match-beginning 0))
(end (condition-case nil
- (let ((parse-sexp-ignore-comments))
+ (let ((forward-sexp-function)
+ (parse-sexp-ignore-comments))
(up-list 1)
(min send (point)))
(scan-error send))))
(up-list 1)
(min send (point)))
(scan-error send))))