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

Re: [PATCH] userdiff: add support for Fountain documents

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2015, 21:17 UTC
Message-ID
<xmqqegk2y1dm.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1437309082-19060-1-git-send-email-zoe@bytenoise.co.uk>
Zoë Blade <zoe@bytenoise.co.uk> writes:
Show 10 quoted lines
> diff --git a/userdiff.c b/userdiff.c
> index 2ccbee5..5a600d6 100644
> --- a/userdiff.c
> +++ b/userdiff.c
> @@ -35,6 +35,8 @@ IPATTERN("fortran",
>  	  * they would have been matched above as a variable anyway. */
>  	 "|[-+]?[0-9.]+([AaIiDdEeFfLlTtXx][Ss]?[-+]?[0-9.]*)?(_[a-zA-Z0-9][a-zA-Z0-9_]*)?"
>  	 "|//|\\*\\*|::|[/<>=]="),
> +PATTERNS("fountain", "^((\\.|(([Ii][Nn][Tt]|[Ee][Ss][Tt]|[Ee][Xx][Tt])?\\.?|[Ii]([Nn][Tt])?\\.?/[Ee]([Xx][Tt])?\\.?) ).+)$",
> +	 "[^ \t-]+"),
Wouldn't IPATTERN() be a better choice here?
>  PATTERNS("html", "^[ \t]*(<[Hh][1-6][ \t].*>.*)$",
>  	 "[^<>= \t]+"),
>  PATTERNS("java",
Previous: Zoë BladeNext: Zoë Blade
Message 2 of 3 in “userdiff: add support for Fountain documents”
  1. userdiff: add support for Fountain documentsZoë Blade, Jul 19, 2015
  2. Junio C HamanoJul 20, 2015
  3. Zoë BladeJul 21, 2015

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.