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' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Oct 2017 05:19:02 +0000
(14:19 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Oct 2017 05:19:02 +0000
(14:19 +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:
16ba0f4
)
diff --git
a/userdiff.c
b/userdiff.c
index 2c1502f719a17abaef6c5c56439c560994b45d37..d31466722091c600bcb42420f5e4f38e6763b0fd 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"