Thread (7 messages) flat view 7 messages, 4 authors, 2016-06-15

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

From: Brandon Casey <hidden>
Date: 2016-06-15 22:45:23

Possibly related (same subject, not in this thread)

Brandon Casey wrote:
Brandon Casey wrote:
quoted
+	{ "java", "!^[ 	]*(catch|do|for|if|instanceof|"
+			"new|return|switch|throw|while)\n"
+			"^[ 	]*(([ 	]*"
+			"[A-Za-z_][A-Za-z_0-9]*){2,}"
I don't understand the last two lines above.
ok, I figured it out.

I was interpretting the {2,} part in

  ([ 	]*[A-Za-z_][A-Za-z_0-9]*){2,}

as requiring two characters, instead of two or more repetitions of
the pattern inside the parenthesis.

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