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

Re: [PATCH] userdiff: match Pascal class methods

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 11, 2011, 19:13 UTC
Message-ID
<7vipxv45ky.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1294736039-5912-1-git-send-email-zapped@mail.ru>
Alexey Shumkin <zapped@mail.ru> writes:
> Class declarations were already covered by the second pattern, but class methods have the 'class' keyword in front too. Account for it.

Too long a line (which I could re-wrap locally but I'd rather not be in the business of doing that for everybody).

>  PATTERNS("pascal",
> -	 "^((procedure|function|constructor|destructor|interface|"
> +	 "^(((class[ \t]+)?(procedure|function)|constructor|destructor|interface|"
>  		"implementation|initialization|finalization)[ \t]*.*)$"

Earlier we took "^procedure frotz", "^function frotz", etc. and now we also take "^class procedure frotz", "^class function frotz", but not "^class constructor frotz"---am I reading the patterns correctly?

Previous: Alexey ShumkinNext: Алексей Шумкин
Message 2 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.