Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
469fc0a2
Commit
469fc0a2
authored
May 01, 2001
by
Stefan Monnier
Browse files
(diff-nonexistant-face): New face.
(diff-font-lock-keywords): Use it.
parent
ed438271
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
lisp/diff-mode.el
lisp/diff-mode.el
+8
-3
No files found.
lisp/diff-mode.el
View file @
469fc0a2
...
...
@@ -4,7 +4,6 @@
;; Author: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: patch diff
;; Revision: $Id: diff-mode.el,v 1.35 2000/11/14 18:09:21 fx Exp $
;; This file is part of GNU Emacs.
...
...
@@ -250,12 +249,17 @@ when editing big diffs)."
:group
'diff-mode
)
(
defvar
diff-context-face
'diff-context-face
)
(
defface
diff-nonexistant-face
'
((
t
(
:inherit
diff-file-header-face
)))
"`diff-mode' face used to highlight nonexistant files in recursive diffs."
:group
'diff-mode
)
(
defvar
diff-nonexistant-face
'diff-nonexistant-face
)
(
defvar
diff-font-lock-keywords
'
((
"^\\(@@ -[0-9,]+ \\+[0-9,]+ @@\\)\\(.*\\)$"
;unified
(
1
diff-hunk-header-face
)
(
2
diff-function-face
))
(
"^--- .+ ----$"
;context
.
diff-hunk-header-face
)
(
"^--- .+ ----$"
.
diff-hunk-header-face
)
;context
(
"\\(\\*\\{15\\}\\)\\(.*\\)$"
;context
(
1
diff-hunk-header-face
)
(
2
diff-function-face
))
...
...
@@ -267,6 +271,7 @@ when editing big diffs)."
(
"^[+>].*\n"
.
diff-added-face
)
(
"^[-<].*\n"
.
diff-removed-face
)
(
"^Index: \\(.+\\).*\n"
(
0
diff-header-face
)
(
1
diff-index-face
prepend
))
(
"^Only in .*\n"
.
diff-nonexistant-face
)
(
"^#.*"
.
font-lock-string-face
)
(
"^[^-=+*!<>].*\n"
.
diff-context-face
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment