userdiff: PHP: catch "abstract" and "final" functions
authorJavier Spagnoletti <redacted>
Wed, 7 Oct 2020 03:38:18 +0000 (03:38 +0000)
committerJunio C Hamano <redacted>
Wed, 7 Oct 2020 15:45:43 +0000 (08:45 -0700)
commitaff92827b54f4b7f9e339982a49bab4bdbd1fc55
tree1a777dafd9e8822a4745b04547606569ef6226d8
parentd98273ba77e1ab9ec755576bc86c716a97bf59d7
userdiff: PHP: catch "abstract" and "final" functions

PHP permits functions to be defined like

       final public function foo() { }
       abstract protected function bar() { }

but our hunk header pattern does not recognize these decorations.
Add "final" and "abstract" to the list of function modifiers.

Helped-by: Johannes Sixt <redacted>
Signed-off-by: Javier Spagnoletti <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t4018/php-abstract-method [new file with mode: 0644]
t/t4018/php-final-method [new file with mode: 0644]
userdiff.c
git clone https://git.99rst.org/PROJECT