Variable: git-commit-font-lock-keywords
git-commit-font-lock-keywords is a variable defined in git-commit.el.
Value
Large value
((eval \`
((\,
(git-commit--trailer-regexp))
(1 'git-commit-trailer-token nil t)
(2 'git-commit-trailer-value nil t)
(3 'git-commit-trailer-token nil t)
(4 'git-commit-trailer-value nil t)))
(eval \`
((\,
(git-commit-summary-regexp))
(1 'git-commit-summary)))
("\\[[^][]+?\\]"
(0 'git-commit-keyword t))
(eval \`
((\,
(git-commit-summary-regexp))
(2 'git-commit-overlong-summary t t)
(3 'git-commit-nonempty-second-line t t)))
(eval \`
((\,
(format "^%s.*" comment-start))
(0 'font-lock-comment-face append)))
(eval \`
((\,
(format "^%s On branch \\(.*\\)" comment-start))
(1 'git-commit-comment-branch-local t)))
(eval \`
((\,
(format "^%s \\(HEAD\\) detached at" comment-start))
(1 'git-commit-comment-detached t)))
(eval \`
((\,
(format "^%s %s" comment-start
(regexp-opt git-commit-comment-headings t)))
(1 'git-commit-comment-heading t)))
(eval \`
((\,
(format "^%s \\(?:\\([^:\n]+\\):\\s-+\\)?\\(.*\\)" comment-start))
(1 'git-commit-comment-action t t)
(2 'git-commit-comment-file t)))
(eval quote
("^commit [[:alnum:]]+$"
(0 'git-commit-trailer-value)))
(eval \`
((\,
(format "\\(?:^%s[[:blank:]]+.+$\\)"
(regexp-opt git-commit-comment-headings)))
(0 'git-commit-trailer-value)))
(eval \`
((\,
(format "^%s Your branch is \\(?:ahead\\|behind\\) of '%s' by \\([0-9]*\\)" comment-start git-commit--branch-name-regexp))
(1 'git-commit-comment-branch-local t)
(2 'git-commit-comment-branch-remote t)
(3 'bold t)))
(eval \`
((\,
(format "^%s Your branch \\(?:is up[- ]to[- ]date with\\|and\\) '%s'" comment-start git-commit--branch-name-regexp))
(1 'git-commit-comment-branch-local t)
(2 'git-commit-comment-branch-remote t)))
(eval \`
((\,
(format "^%s and have \\([0-9]*\\) and \\([0-9]*\\) commits each" comment-start))
(1 'bold t)
(2 'bold t))))
Documentation
Font-Lock keywords for Git-Commit mode.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/git-commit.el
(defvar git-commit-font-lock-keywords git-commit-font-lock-keywords-3
"Font-Lock keywords for Git-Commit mode.")