diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-03-31 16:30:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-31 16:30:54 -0700 |
commit | c228a5c077d564d84e52fb1aabf3d623230c894d (patch) | |
tree | 50694b2bc9e5eb48c34bb747dc3ed7fbe6a1c600 /t/t4018/custom3-alternation-in-pattern | |
parent | Merge branch 'dw/doc-status-no-longer-shows-pound-prefix' (diff) | |
parent | userdiff: have 'cpp' hunk header pattern catch more C++ anchor points (diff) | |
download | tgif-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/custom3-alternation-in-pattern')
-rw-r--r-- | t/t4018/custom3-alternation-in-pattern | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t4018/custom3-alternation-in-pattern b/t/t4018/custom3-alternation-in-pattern new file mode 100644 index 0000000000..5f3769c64f --- /dev/null +++ b/t/t4018/custom3-alternation-in-pattern @@ -0,0 +1,17 @@ +public class Beer +{ + int special; + public static void main(String RIGHT[]) + { + String s=" "; + for(int x = 99; x > 0; x--) + { + System.out.print(x + " bottles of beer on the wall " + + x + " bottles of beer\n" // ChangeMe + + "Take one down, pass it around, " + (x - 1) + + " bottles of beer on the wall.\n"); + } + System.out.print("Go to the store, buy some more,\n" + + "99 bottles of beer on the wall.\n"); + } +} |