Skip to content

Commit

Permalink
Merge branch 'bs/userdiff-php'
Browse files Browse the repository at this point in the history
* bs/userdiff-php:
  diff: Support visibility modifiers in the PHP hunk header regexp
  • Loading branch information
gitster committed Jun 13, 2010
2 parents e391fdf + 6d2f208 commit 9559910
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion userdiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ PATTERNS("pascal",
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
"|<>|<=|>=|:=|\\.\\."
"|[^[:space:]]|[\x80-\xff]+"),
PATTERNS("php", "^[\t ]*((function|class).*)",
PATTERNS("php",
"^[\t ]*(((public|protected|private|static)[\t ]+)*function.*)$\n"
"^[\t ]*(class.*)$",
/* -- */
"[a-zA-Z_][a-zA-Z0-9_]*"
"|[-+0-9.e]+|0[xXbB]?[0-9a-fA-F]+"
Expand Down

0 comments on commit 9559910

Please sign in to comment.