The SSH host key has changed on 8 April, 2022 to this one: SHA256:573uTBSeh74kvOo0HJXi5ijdzRm8me27suzNEDlGyrQ

Font lock variables in F-strings

Gergely Polonkai 3 years ago
parent cc5a216a21
commit 6cc2c8523f
No known key found for this signature in database
GPG Key ID: 38F402C8471DDE93
  1. 22

@ -830,6 +830,28 @@ to the beginning of the file."
(goto-char point-pos))))
*** Font-lock variables in f-strings
#+BEGIN_SRC emacs-lisp
(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
;; 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)))))))
** ~idm~ (ID manager) related functions
*** Get specific fields from a record in ~idm~