Skip to content

Commit 376a1da

Browse files
committed
Merge branch 'ik/userdiff-html-h-element-fix'
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
2 parents 59373a4 + 9c03cac commit 376a1da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userdiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ IPATTERN("fortran",
3838
"|//|\\*\\*|::|[/<>=]="),
3939
IPATTERN("fountain", "^((\\.[^.]|(int|ext|est|int\\.?/ext|i/e)[. ]).*)$",
4040
"[^ \t-]+"),
41-
PATTERNS("html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$",
41+
PATTERNS("html", "^[ \t]*(<[Hh][1-6]([ \t].*)?>.*)$",
4242
"[^<>= \t]+"),
4343
PATTERNS("java",
4444
"!^[ \t]*(catch|do|for|if|instanceof|new|return|switch|throw|while)\n"

0 commit comments

Comments
 (0)