diff-font-lock-keywords
diff-font-lock-keywords is a variable defined in `
diff-mode.el
'.
Its value is shown
below.
- This variable may be risky if used as a file-local variable.
Documentation:
Not documented as a variable.
Value:
(("\\(^@@ -\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)? \\+\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)? @@\\)\\(.*\\)$"
(1 diff-hunk-header-face)
(6 diff-function-face))
("^\\(\\*\\{15\\}\\)\\(.*\\)$"
(1 diff-hunk-header-face)
(2 diff-function-face))
("^\\*\\*\\* .+ \\*\\*\\*\\*" . diff-hunk-header-face)
("--- \\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)? ----$" . diff-hunk-header-face)
("^[0-9,]+[acd][0-9,]+$" . diff-hunk-header-face)
("^---$" . diff-hunk-header-face)
("^\\(---\\|\\+\\+\\+\\|\\*\\*\\*\\) \\([^ \n]+?\\)\\(?: .*\\| \\(\\*\\*\\*\\*\\|----\\)\\)?\n"
(0 diff-header-face)
(2
(if
(not
(match-end 3))
diff-file-header-face)
prepend))
("^\\([-<]\\)\\(.*\n\\)"
(1 diff-indicator-removed-face)
(2 diff-removed-face))
("^\\([+>]\\)\\(.*\n\\)"
(1 diff-indicator-added-face)
(2 diff-added-face))
("^\\(!\\)\\(.*\n\\)"
(1
(if diff-use-changed-face diff-indicator-changed-face
(save-match-data
(let
((limit
(save-excursion
(diff-beginning-of-hunk))))
(if
(save-excursion
(re-search-backward diff-context-mid-hunk-header-re limit t))
diff-indicator-added-face diff-indicator-removed-face)))))
(2
(if diff-use-changed-face diff-changed-face
(save-match-data
(let
((limit
(save-excursion
(diff-beginning-of-hunk))))
(if
(save-excursion
(re-search-backward diff-context-mid-hunk-header-re limit t))
diff-added-face diff-removed-face))))))
("^\\(?:Index\\|revno\\): \\(.+\\).*\n"
(0 diff-header-face)
(1 diff-index-face prepend))
("^Only in .*\n" . diff-nonexistent-face)
("^\\(#\\)\\(.*\\)"
(1 font-lock-comment-delimiter-face)
(2 font-lock-comment-face))
("^[^-=+*!<>#].*\n"
(0 diff-context-face)))