git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] userdiff: match Pascal class methods

From
Alexey Shumkin <zapped@mail.ru>
Date
Jan 11, 2011, 08:53 UTC
Message-ID
<1294736039-5912-1-git-send-email-zapped@mail.ru>
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>
---
 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
Next: Junio C Hamano
Message 1 of 3 in “userdiff: match Pascal class methods”
  1. userdiff: match Pascal class methodsAlexey Shumkin, Jan 11, 2011
  2. Junio C HamanoJan 11, 2011
  3. Re[2]: [PATCH] userdiff: match Pascal class methodsАлексей Шумкин, Jan 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.