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

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:05

"Avery Pennarun" [off-list ref] writes:
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 <redacted>
---

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").

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

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:45:05

On 8/1/08, Junio C Hamano [off-list ref] wrote:
Is Delphi the only surviving Pascal?  Why is the name "pas", not "pascal"
 or even "delphi-pascal"?
No, but all surviving Pascals pretty much support the same syntax, so
when I say Pascal/Delphi, I mean either one.  And Delphi does use the
.pas extension.
 The keys are not file extensions ("ruby" example did the right thing by
 not saying "rb").
Will fix.

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help