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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 1, 2008, 20:16 UTC
Message-ID
<7v8wvgsd6s.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1217619915-9331-1-git-send-email-apenwarr@gmail.com>
"Avery Pennarun" <apenwarr@gmail.com> writes:
Show 10 quoted lines
> Finds classes, records, functions, procedures, and sections.  Most lines
> need to start at the first column, or else there's no way to differentiate
> a procedure's definition from its declaration.
>
> Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
> ---
>
> The Ruby funcname pattern patch inspired me.  Although unlike him, I didn't
> check with anyone else for confirmation.  How many Pascal programmers can
> there possibly be? :)
> +	{ "pas", "\\(^\\(procedure\\|function\\|constructor\\|"
> +			"destructor\\|interface\\|implementation\\|"
> +			"type|initialization|finalization\\).*$\\)"
> +			"\\|\\(^.*=[ \t]*\\(class\\|record\\).*$\\)" },

Is Delphi the only surviving Pascal? Why is the name "pas", not "pascal" or even "delphi-pascal"?

The keys are not file extensions ("ruby" example did the right thing by not saying "rb").

Previous: Avery PennarunNext: Avery Pennarun
Message 2 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.