diff options
author | Alexey Shumkin <zapped@mail.ru> | 2011-01-11 11:53:59 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-01-11 11:03:48 -0800 |
commit | ad5b6942d5b9127cc940d2135ce82c633013418a (patch) | |
tree | 7c131ac5e75f5867eb35ec9853d9e9daa298d22f /userdiff.c | |
parent | 2cf08b6a0ab09f1b81b78a5686a632a2a602abf4 (diff) | |
download | git-ad5b6942d5b9127cc940d2135ce82c633013418a.tar.gz |
userdiff: match Pascal class methods
Class declarations were already covered by the second pattern, but class
methods have the 'class' keyword in front too. Account for it.
Signed-off-by: Alexey Shumkin <zapped@mail.ru>
Acked-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'userdiff.c')
-rw-r--r-- | userdiff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userdiff.c b/userdiff.c index 2d5453697a..234697821d 100644 --- a/userdiff.c +++ b/userdiff.c @@ -52,7 +52,7 @@ PATTERNS("objc", "|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->" "|[^[:space:]]|[\x80-\xff]+"), PATTERNS("pascal", - "^((procedure|function|constructor|destructor|interface|" + "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|" "implementation|initialization|finalization)[ \t]*.*)$" "\n" "^(.*=[ \t]*(class|record).*)$", |