git/t/t4018
Kana Natsuno 1ab631647e userdiff: support new keywords in PHP hunk header
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 <dev@whileimautomaton.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-07-06 14:59:28 -07:00
..
README
cpp-c++-function
cpp-class-constructor
cpp-class-constructor-mem-init
cpp-class-definition
cpp-class-definition-derived
cpp-class-destructor
cpp-function-returning-global-type
cpp-function-returning-nested
cpp-function-returning-pointer
cpp-function-returning-reference
cpp-gnu-style-function
cpp-namespace-definition
cpp-operator-definition
cpp-skip-access-specifiers
cpp-skip-comment-block
cpp-skip-labels
cpp-struct-definition
cpp-struct-single-line
cpp-template-function-definition
cpp-union-definition
cpp-void-c-function
css-brace-in-col-1 userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-colon-eol userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-colon-selector userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-common userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-long-selector-list userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-prop-sans-indent userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-short-selector-list userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
css-trailing-space userdiff: add built-in pattern for CSS 2016-06-03 14:45:56 -07:00
custom1-pattern
custom2-match-to-end-of-line
custom3-alternation-in-pattern
fountain-scene
golang-complex-function userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-func userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-interface userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-long-func userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
golang-struct userdiff: add built-in pattern for golang 2018-03-01 13:36:49 -08:00
java-class-member-function
perl-skip-end-of-heredoc
perl-skip-forward-decl
perl-skip-sub-in-pod
perl-sub-definition
perl-sub-definition-kr-brace
php-abstract-class userdiff: support new keywords in PHP hunk header 2018-07-06 14:59:28 -07:00
php-class t4018: add missing test cases for PHP 2018-07-06 14:56:42 -07:00
php-final-class userdiff: support new keywords in PHP hunk header 2018-07-06 14:59:28 -07:00
php-function t4018: add missing test cases for PHP 2018-07-06 14:56:42 -07:00
php-interface userdiff: support new keywords in PHP hunk header 2018-07-06 14:59:28 -07:00
php-method t4018: add missing test cases for PHP 2018-07-06 14:56:42 -07:00
php-trait userdiff: support new keywords in PHP hunk header 2018-07-06 14:59:28 -07:00

README

How to write RIGHT test cases
=============================

Insert the word "ChangeMe" (exactly this form) at a distance of
at least two lines from the line that must appear in the hunk header.

The text that must appear in the hunk header must contain the word
"right", but in all upper-case, like in the title above.

To mark a test case that highlights a malfunction, insert the word
BROKEN in all lower-case somewhere in the file.

This text is a bit twisted and out of order, but it is itself a
test case for the default hunk header pattern. Know what you are doing
if you change it.

BTW, this tests that the head line goes to the hunk header, not the line
of equal signs.