Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

Re: [PATCH v2 4/4] diff.c: convert builtin funcname patterns to non-GNU extended regex syntax

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

Possibly related (same subject, not in this thread)

Brandon Casey [off-list ref] writes:
Junio C Hamano <gitster <at> pobox.com> writes:
quoted
Here is [1/2] to be applied on top of 45d9414 (diff.*.xfuncname which uses
"extended" regex's for hunk header selection, 2008-09-18).

Testing appreciated.
quoted
+	{ "bibtex", "(@[a-zA-Z]{1,}[ \t]*\{{0,1}[ \t]*[^ \t\"@',\\#}{~%]*).*$",
+	  REG_EXTENDED },
+	{ "tex",
+	  "^(\\\\((sub)*section|chapter|part)\\*{0,1}\{.*)$",
I think you need double backslash '\\' before '{' in the two places in these
patterns where you only have a single backslash.
Thanks.  Any other nits?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help