DORMANTno replies REVIEWED: 1 (0M)

1 review trailer.

[PATCH] userdiff: match Pascal class methods

From: Alexey Shumkin <hidden>
Date: 2016-06-15 22:50:22
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
Acked-by: Thomas Rast <redacted>
---
 userdiff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/userdiff.c b/userdiff.c
index f9e05b5..259a382 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).*)$",
-- 
1.7.3.4.3.g3f811
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help