Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ik/userdiff-html-h-element-fix'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Sep 2017 05:47:54 +0000
(14:47 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Sep 2017 05:47:54 +0000
(14:47 +0900)
The built-in pattern to detect the "function header" for HTML did
not match <H1>..<H6> elements without any attributes, which has
been fixed.
* ik/userdiff-html-h-element-fix:
userdiff: fix HTML hunk header regexp
userdiff.c
patch
|
blob
|
history
raw
(from parent 1:
59373a4
)
diff --git
a/userdiff.c
b/userdiff.c
index 6321103ce25dea936eea84fdb2a0d6d636e1cddb..dbfb4e13cddceaa44feee51016c9b837f7f4fce1 100644
(file)
--- a/
userdiff.c
+++ b/
userdiff.c
@@
-38,7
+38,7
@@
IPATTERN("fortran",
"|//|\\*\\*|::|[/<>=]="),
IPATTERN("fountain", "^((\\.[^.]|(int|ext|est|int\\.?/ext|i/e)[. ]).*)$",
"[^ \t-]+"),
-PATTERNS("html", "^[ \t]*(<[Hh][1-6]
[ \t].*
>.*)$",
+PATTERNS("html", "^[ \t]*(<[Hh][1-6]
([ \t].*)?
>.*)$",
"[^<>= \t]+"),
PATTERNS("java",
"!^[ \t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)\n"