t4018-diff-funcname: test syntax of builtin xfuncname patterns
[jc: fixes bibtex pattern breakage exposed by this test] Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Brandon Casey committed
Sep 22, 2008 at 18:26 UTC
fdac6692a0b0eda293f9f1bf4bc49b05b29f3c45
2 files changed
+2
-2
diff.c
+1
-1
@@ -1404,7 +1404,7 @@ static const struct funcname_pattern_entry *funcname_pattern(const char *ident)
1404
}
1405
1406
static const struct funcname_pattern_entry builtin_funcname_pattern[] = {
1407
- { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
1407
+ { "bibtex", "(@[a-zA-Z]{1,}[ \t]*\\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
1408
REG_EXTENDED },
1409
{ "html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$", REG_EXTENDED },
1410
{ "java",
t/t4018-diff-funcname.sh
+1
-1
@@ -32,7 +32,7 @@ EOF
32
33
sed 's/beer\\/beer,\\/' < Beer.java > Beer-correct.java
34
35
-builtin_patterns="bibtex java pascal ruby tex"
35
+builtin_patterns="bibtex html java pascal php python ruby tex"
36
for p in $builtin_patterns
37
do
38
test_expect_success "builtin $p pattern compiles" '