From 715a53f417c46752df0ef99ecc8019ddc06ced0d Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sat, 21 Oct 2023 07:50:10 +0200 Subject: [PATCH] Remove Python f-string font locking hack It is now supported by python-mode natively. --- configuration.org | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/configuration.org b/configuration.org index b7ab95c..7a03dad 100644 --- a/configuration.org +++ b/configuration.org @@ -870,29 +870,6 @@ to the beginning of the file." (goto-char point-pos)))) #+END_SRC -*** Font-lock variables in f-strings -:PROPERTIES: -:SOURCE: https://emacs.stackexchange.com/a/55186/507 -:END: - -#+BEGIN_SRC emacs-lisp :tangle no -(with-eval-after-load "python" - (setq python-font-lock-keywords - (append python-font-lock-keywords - '(;; this is the full string. - ;; group 1 is the quote type and a closing quote is matched - ;; group 2 is the string part - ("f\\(['\"]\\{1,3\\}\\)\\([^\\1]+?\\)\\1" - ;; these are the {keywords} - ("{[^}]*?}" - ;; Pre-match form - (progn (goto-char (match-beginning 0)) (match-end 0)) - ;; Post-match form - (goto-char (match-end 0)) - ;; face for this match - (0 font-lock-variable-name-face t))))))) -#+END_SRC - ** Jinja related *** Mark a string as translatable