Skip to content

Commit ad5b694

Browse files
alekseyshumkingitster
authored andcommitted
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 <[email protected]> Acked-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2cf08b6 commit ad5b694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

userdiff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ PATTERNS("objc",
5252
"|[-+*/<>%&^|=!]=|--|\\+\\+|<<=?|>>=?|&&|\\|\\||::|->"
5353
"|[^[:space:]]|[\x80-\xff]+"),
5454
PATTERNS("pascal",
55-
"^((procedure|function|constructor|destructor|interface|"
55+
"^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|"
5656
"implementation|initialization|finalization)[ \t]*.*)$"
5757
"\n"
5858
"^(.*=[ \t]*(class|record).*)$",

0 commit comments

Comments
 (0)