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

Re[2]: [PATCH] userdiff: match Pascal class methods

From
Алексей Шумкин <zapped@mail.ru>
Date
Jan 11, 2011, 19:50 UTC
Message-ID
<1093185322.20110111225059@mail.ru>
In-Reply-To
<7vipxv45ky.fsf@alter.siamese.dyndns.org>
JCH> 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.

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

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

JCH> Earlier we took "^procedure frotz", "^function frotz", etc. and now we JCH> also take "^class procedure frotz", "^class function frotz", but not JCH> "^class constructor frotz"---am I reading the patterns correctly? Yes, you're reading correctly. 'class' keyword might precede only 'procedure' or 'function' keyword but not the other ones

Previous: Junio C Hamano
Message 3 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.