This is part of my general el config. As shown in the image, when I divide long line (that has lamda, interative) into multiple lines :which-key ...... changes color.`
- Why is this happening?
- Am I doing something wrong?
- What is your preferred way to execute functions that has arguments such as
(org-latex-export-to-pdf nil t)ingeneral elconfig.
(use-package general :config (general-evil-setup t) (general-create-definer rune/leader-keys :keymaps '(normal insert visual emacs) :prefix "SPC" :global-prefix "C-SPC") ) (rune/leader-keys "oxp" '(org-latex-export-to-pdf :which-key "(o)-(x)port-(p)df") "oxP" '((lambda () (interactive) (org-latex-export-to-pdf nil t)) :which-key "(o)-(x)port-subtree-(P)df") "oxsp" '((lambda () (interactive) (org-latex-export-to-pdf nil t)) :which-key "(o)-(x)port-subtree-(P)df") ) Update:
Running bare emacs -Q shows same syntax color break as image below: 
Update (2) Apparently, if nothing before :which-key then syntax color is OK. I guess.


M-x report-emacs-bugif you see the same thing without your init file, or report it to whatever library your init file is using that might be imposing inadequate font-lock rules.newlineis just before the:which-key. (i.e. only spaces before:which-key) then syntax coloring won't break.