9front - general discussion about 9front
 help / color / mirror / Atom feed
* Re: [9front] Re: [Patch] Re: fmt Re: with Re: line Re: prefixes.
@ 2019-10-30 22:16 kvik
  0 siblings, 0 replies; only message in thread
From: kvik @ 2019-10-30 22:16 UTC (permalink / raw)
  To: 9front

I think this is a great feature.

> (regex prefixes?)

Regex prefixes would be a dream for source code comments
where you have a variable amount of prefix whitespace, esp.
for more complex forms like the classic C style:

	/*
	 * I'm a comment.
	 * AMA.
	 */

	fmt -p '[	]* ?(/\*|\*|\*/) ?'

--
kvik


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-30 22:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 22:16 [9front] Re: [Patch] Re: fmt Re: with Re: line Re: prefixes kvik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).