[PATCH 2/2] userdiff: support new keywords in PHP hunk header

2018-07-03 Thread Kana Natsuno
Recent version of PHP supports interface, trait, abstract class and final class. This patch fixes the PHP hunk header regexp to support all of these keywords. Signed-off-by: Kana Natsuno --- t/t4018/php-abstract-class | 4 t/t4018/php-final-class| 4 t/t4018/php-interface

[PATCH 1/2] t4018: add missing test cases for PHP

2018-07-03 Thread Kana Natsuno
A later patch changes the built-in PHP pattern. These test cases demonstrate aspects of the pattern that we do not want to change. Signed-off-by: Kana Natsuno --- t/t4018/php-class| 4 t/t4018/php-function | 4 t/t4018/php-method | 7 +++ 3 files changed, 15 insertions

[PATCH 0/2] userdiff: support new keywords in PHP hunk header

2018-07-03 Thread Kana Natsuno
Recent version of PHP supports interface, trait, abstract class and final class. This patch fixes the PHP hunk header regexp to support all of these keywords. Kana Natsuno (2): t4018: add missing test cases for PHP userdiff: support new keywords in PHP hunk header t/t4018/php-abstract