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

Re: [PATCH] Add Pascal/Delphi (.pas file) funcname pattern.

From
Avery Pennarun <apenwarr@gmail.com>
Date
Aug 1, 2008, 20:40 UTC
Message-ID
<32541b130808011340j38715970k8dda59fc01ce6918@mail.gmail.com>
In-Reply-To
<20080801202059.GS32184@machine.or.cz>
On 8/1/08, Petr Baudis <pasky@suse.cz> wrote:
Show 8 quoted lines
> On Fri, Aug 01, 2008 at 03:45:15PM -0400, Avery Pennarun wrote:
>  > +     { "pas", "\\(^\\(procedure\\|function\\|constructor\\|"
>  > +                     "destructor\\|interface\\|implementation\\|"
>  > +                     "type|initialization|finalization\\).*$\\)"
>  > +                     "\\|\\(^.*=[ \t]*\\(class\\|record\\).*$\\)" },
>
> Wouldn't it be better to make the second pattern start on new line
>  instead of the outer \(\|\)?

I didn't even know that was possible, but suddenly I understand the "java" pattern a lot better. Thanks!

>  Why "type"?

Well, it's a subsection, but it's always followed by a class or record definition anyway, so I guess it makes more sense to omit it, now that you bring it up.

Have fun,
Avery
Previous: Petr Baudis
Message 5 of 5 in “Add Pascal/Delphi (.pas file) funcname pattern.”
  1. Add Pascal/Delphi (.pas file) funcname pattern.Avery Pennarun, Aug 1, 2008
  2. Junio C HamanoAug 1, 2008
  3. Avery PennarunAug 1, 2008
  4. Petr BaudisAug 1, 2008
  5. Avery PennarunAug 1, 2008

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.