summaryrefslogtreecommitdiff
path: root/t/t4018/perl-sub-definition
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-03-31 16:30:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-31 16:30:54 -0700
commitc228a5c077d564d84e52fb1aabf3d623230c894d (patch)
tree50694b2bc9e5eb48c34bb747dc3ed7fbe6a1c600 /t/t4018/perl-sub-definition
parentMerge branch 'dw/doc-status-no-longer-shows-pound-prefix' (diff)
parentuserdiff: have 'cpp' hunk header pattern catch more C++ anchor points (diff)
downloadtgif-c228a5c077d564d84e52fb1aabf3d623230c894d.tar.xz
Merge branch 'js/userdiff-cc'
Improves the pattern to match the hunk-header for C/C++. * js/userdiff-cc: userdiff: have 'cpp' hunk header pattern catch more C++ anchor points t4018: test cases showing that the cpp pattern misses many anchor points t4018: test cases for the built-in cpp pattern t4018: reduce test files for pattern compilation tests t4018: convert custom pattern test to the new infrastructure t4018: convert java pattern test to the new infrastructure t4018: convert perl pattern tests to the new infrastructure t4018: an infrastructure to test hunk headers userdiff: support unsigned and long long suffixes of integer constants userdiff: support C++ ->* and .* operators in the word regexp
Diffstat (limited to 't/t4018/perl-sub-definition')
-rw-r--r--t/t4018/perl-sub-definition4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t4018/perl-sub-definition b/t/t4018/perl-sub-definition
new file mode 100644
index 0000000000..a507d1f645
--- /dev/null
+++ b/t/t4018/perl-sub-definition
@@ -0,0 +1,4 @@
+sub RIGHT {
+ my ($n) = @_;
+ print "ChangeMe";
+}