userdiff: add Octave

Octave pattern is almost the same as matlab, except
that '%%%' and '##' can also be used to begin code sections,
in addition to '%%' that is understood by both. Octave
pattern is merged into Matlab pattern. Test cases for
the hunk header patterns of matlab and octave under
t/t4018 are added.

Signed-off-by: Boxuan Li <liboxuan@connect.hku.hk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Boxuan Li
2019-05-18 11:46:23 +08:00
committed by Junio C Hamano
parent ab15ad1a3b
commit 91bf382fcf
7 changed files with 23 additions and 2 deletions

4
t/t4018/matlab-function Normal file
View File

@ -0,0 +1,4 @@
function y = RIGHT()
x = 5;
y = ChangeMe + x;
end